Sign inSign up

retrage/sqlite-bench

By retrage

•Updated almost 8 years ago

SQLite Benchmark

Image
0

437

retrage/sqlite-bench repository overview

⁠SQLite3 Benchmark CircleCI

A SQLite3 benchmark tool. Most of the code comes from LevelDB⁠. This is C version of doc/bench/db_bench_sqlite3.cc⁠.

⁠Building

SQLite3 is included in the repository.

$ make

⁠Usage

$ ./sqlite-bench --help
Usage: ./sqlite-bench [OPTION]...
SQLite3 benchmark tool
[OPTION]
  --benchmarks=[BENCH]          specify benchmark
  --histogram={0,1}             record histogram
  --raw={0,1}                   output raw data
  --compression_ratio=DOUBLE    compression ratio
  --use_existing_db={0,1}       use existing database
  --num=INT                     number of entries
  --reads=INT                   number of reads
  --value_size=INT              value size
  --no_transaction              disable transaction
  --page_size=INT               page size
  --num_pages=INT               number of pages
  --WAL_enabled={0,1}           enable WAL
  --db=PATH                     path to location databases are created
  --help                        show this help

[BENCH]
  fillseq       write N values in sequential key order in async mode
  fillseqsync   write N/100 values in sequential key order in sync mode
  fillseqbatch  batch write N values in sequential key order in async mode
  fillrandom    write N values in random key order in async mode
  fillrandsync  write N/100 values in random key order in sync mode
  fillrandbatch batch write N values in random key order in async mode
  overwrite     overwrite N values in random key order in async mode
  fillrand100K  write N/1000 100K values in random order in async mode
  fillseq100K   wirte N/1000 100K values in sequential order in async mode
  readseq       read N times sequentially
  readrandom    read N times in random order
  readrand100K  read N/1000 100K values in sequential order in async mode

Tag summary

Content type

Image

Digest

Size

149.8 MB

Last updated

almost 8 years ago

docker pull retrage/sqlite-bench