Islam AbdelRahman
cce702a6e4
[db_bench] Support single benchmark arguments (Repeat for X times, Warm up for X times), Support CombinedStats (AVG / MEDIAN)
Summary:
This diff allow us to run a single benchmark X times and warm it up for Y times. and see the AVG & MEDIAN throughput of these X runs
for example
```
$ ./db_bench --benchmarks="fillseq,readseq[X5-W2]"
Initializing RocksDB Options from the specified file
Initializing RocksDB Options from command-line flags
RocksDB: version 4.12
Date: Wed Aug 24 10:45:26 2016
CPU: 32 * Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
CPUCache: 20480 KB
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
Prefix: 0 bytes
Keys per prefix: 0
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
Write rate: 0 bytes/second
Compression: Snappy
Memtablerep: skip_list
Perf Level: 1
WARNING: Assertions are enabled; benchmarks unnecessarily slow
------------------------------------------------
Initializing RocksDB Options from the specified file
Initializing RocksDB Options from command-line flags
DB path: [/tmp/rocksdbtest-8616/dbbench]
fillseq : 4.695 micros/op 212971 ops/sec; 23.6 MB/s
DB path: [/tmp/rocksdbtest-8616/dbbench]
Warming up benchmark by running 2 times
readseq : 0.214 micros/op 4677005 ops/sec; 517.4 MB/s
readseq : 0.212 micros/op 4706834 ops/sec; 520.7 MB/s
Running benchmark for 5 times
readseq : 0.218 micros/op 4588187 ops/sec; 507.6 MB/s
readseq : 0.208 micros/op 4816538 ops/sec; 532.8 MB/s
readseq : 0.213 micros/op 4685376 ops/sec; 518.3 MB/s
readseq : 0.214 micros/op 4676787 ops/sec; 517.4 MB/s
readseq : 0.217 micros/op 4618532 ops/sec; 510.9 MB/s
readseq [AVG 5 runs] : 4677084 ops/sec; 517.4 MB/sec
readseq [MEDIAN 5 runs] : 4676787 ops/sec; 517.4 MB/sec
```
Test Plan: run db_bench
Reviewers: sdong, andrewkr, yhchiang
Reviewed By: yhchiang
Subscribers: andrewkr, dhruba
Differential Revision: https://reviews.facebook.net/D62235
2016-08-25 12:57:35 -07:00
..
2016-02-09 15:12:00 -08:00
2015-12-11 01:54:48 +09:00
2015-12-11 01:54:48 +09:00
2015-04-27 19:32:56 -07:00
2016-05-09 13:32:57 -07:00
2016-06-10 13:17:14 -07:00
2016-07-26 18:15:11 -07:00
2016-08-25 12:57:35 -07:00
2016-05-09 13:32:57 -07:00
2016-08-24 14:19:05 -07:00
2016-02-09 15:12:00 -08:00
2016-07-08 17:50:51 -07:00
2016-08-19 12:28:19 -07:00
2015-02-11 18:40:11 -08:00
2015-05-22 16:03:39 -07:00
2015-04-08 16:04:59 -07:00
2016-07-26 11:13:26 -07:00
2016-05-06 16:09:09 -07:00
2016-07-26 11:13:26 -07:00
2016-01-25 14:58:18 -08:00
2016-07-26 11:13:26 -07:00
2016-02-09 15:12:00 -08:00
2015-02-11 18:40:11 -08:00
2016-05-13 12:12:39 -07:00
2016-06-28 14:10:24 -07:00
2015-10-05 19:49:48 -07:00
2016-03-04 12:32:11 -08:00
2015-04-27 19:32:56 -07:00
2015-06-19 16:24:36 -07:00
2016-04-27 17:36:03 -07:00
2016-04-01 10:42:39 -07:00
2016-07-19 09:44:03 -07:00
2016-02-09 15:12:00 -08:00
2015-04-08 16:04:59 -07:00
2015-10-28 16:15:07 -07:00
2016-02-09 15:12:00 -08:00