mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Current etcd repository has a test for benchmarking a storage backend in storage/kvstore_bench_test.go. However, it is hard to test various parameters (e.g. batch interval, a number of keys, etc) with the test. This commit adds a new benchmarking subcommand "storage" to tools/benchmark. It will encourage analysis of storage backends with various parameter and complex workloads. Exmaple usage: $ ./benchmark storage put total: 9.894173792s average: 9.894173ms minimum latency: 6.596991ms maximum latency: 29.455695ms