Skip to content

nutsdb/kvstore-bench

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kvstore-bench

kvstore-bench is a key-value store benchmarking tool. Currently it supports pogreb, goleveldb, bolt, badger and lotusdb.

derived from https://github.com/akrylysov/pogreb-bench.

Usage

build kv-bench binary.

cd cmd/kv-bench
go build

get help.

➜  kv-bench git:(main) ✗ ./kv-bench --help
Usage of ./kv-bench:
  -alsologtostderr
    	log to standard error as well as files
  -c int
    	number of concurrent goroutines (default 1)
  -compact
    	write keys twice and run compaction after
  -e string
    	database engine name. pogreb, goleveldb, bbolt or badger (default "pogreb")
  -log_backtrace_at value
    	when logging hits line file:N, emit a stack trace
  -log_dir string
    	If non-empty, write log files in this directory
  -log_link string
    	If non-empty, add symbolic links in this directory to the log files
  -logbuflevel int
    	Buffer log messages logged at this level or lower (-1 means don't buffer; 0 means buffer INFO only; ...). Has limited applicability on non-prod platforms.
  -logtostderr
    	log to standard error instead of files
  -maxk int
    	maximum key size (default 64)
  -maxv int
    	maximum value size (default 512)
  -mink int
    	minimum key size (default 16)
  -minv int
    	minimum value size (default 128)
  -n int
    	number of keys (default 100000)
  -p string
    	database path
  -profile string
    	enable profile. cpu, mem, block or mutex
  -stderrthreshold value
    	logs at or above this threshold go to stderr (default 2)
  -v value
    	log level for V logs
  -vmodule value
    	comma-separated list of pattern=N settings for file-filtered logging

example

./kv-bench -c 5 -e lotusdb -n 2000000 -p /tmp/lotusdb -profile mem

Running Kvrocks using Docker

build kv-bench image.

docker build -t kv-bench .

get help.

docker run --rm --name kv-bench -it kv-bench --help

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 94.7%
  • Dockerfile 3.7%
  • Makefile 1.6%