Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 672 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 672 Bytes

db-bench

Compile

make build

Bench

# init data in pebble
./db_bench --is-init --init-num-keys 10000000 --value-size 4096 --db pebble --metrics.addr 127.0.0.1 --metrics.port 6060 --metrics

# bench read only
./db_bench --init-num-keys 10000000 --read-num-keys 5000000 --db pebble --metrics.addr 127.0.0.1 --metrics.port 6060 --metrics --workload-type read --threads 8

# bench mix read/write
./db_bench --init-num-keys 10000000 --read-num-keys 5000000 --db pebble --metrics.addr 127.0.0.1 --metrics.port 6060 --metrics --workload-type read-write --threads 8

Monitor

curl http://127.0.0.1:6060/debug/metrics/prometheus