test/blobfs: add timing for rocksdb benchmarks
Change-Id: Ibcbb75671e3526076d31f6dc53da490f3c0e6d3e Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/378830 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
f7eb7d6434
commit
70684937b7
@ -46,7 +46,10 @@ $rootdir/scripts/gen_nvme.sh >> $ROCKSDB_CONF
|
||||
|
||||
trap 'rm -f $ROCKSDB_CONF; exit 1' SIGINT SIGTERM EXIT
|
||||
|
||||
timing_enter mkfs
|
||||
$rootdir/test/lib/blobfs/mkfs/mkfs $ROCKSDB_CONF Nvme0n1
|
||||
timing_exit mkfs
|
||||
|
||||
mkdir $output_dir/rocksdb
|
||||
RESULTS_DIR=$output_dir/rocksdb
|
||||
DURATION=30
|
||||
@ -95,11 +98,25 @@ echo "--use_existing_db=1" >> writesync_flags.txt
|
||||
echo "--sync=1" >> writesync_flags.txt
|
||||
echo "--num=$NUM_KEYS" >> writesync_flags.txt
|
||||
|
||||
timing_enter rocksdb_insert
|
||||
run_step insert
|
||||
timing_exit rocksdb_insert
|
||||
|
||||
timing_enter rocksdb_overwrite
|
||||
run_step overwrite
|
||||
timing_exit rocksdb_overwrite
|
||||
|
||||
timing_enter rocksdb_readwrite
|
||||
run_step readwrite
|
||||
timing_exit rocksdb_readwrite
|
||||
|
||||
timing_enter rocksdb_writesync
|
||||
run_step writesync
|
||||
timing_exit rocksdb_writesync
|
||||
|
||||
timing_enter rocksdb_randread
|
||||
run_step randread
|
||||
timing_exit rocksdb_randread
|
||||
|
||||
trap - SIGINT SIGTERM EXIT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user