Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

dgraph-io/badger-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

db150ce · Sep 20, 2019
Apr 25, 2017
Sep 20, 2019
Jul 18, 2017
Jan 30, 2019
Jul 25, 2019
Aug 15, 2017
Jan 25, 2019
Sep 19, 2017
Jan 25, 2019
Mar 24, 2017
Jan 25, 2019
May 4, 2017
Sep 20, 2019
Jan 25, 2019
Oct 4, 2017

Repository files navigation

Benchmarks for BadgerDB

This repo contains the code for benchmarking BadgerDB, along with detailed logs from previous benchmarking runs.

Setting Up

$ sudo apt-get update && sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
$ wget https://github.com/facebook/rocksdb/archive/v5.1.4.tar.gz
$ tar -xzvf v5.1.4.tar.gz
$ cd rocksdb-5.1.4
$ export USE_RTTI=1 && make shared_lib
$ sudo make install-shared
$ ldconfig # to update ld.so.cache
  • Install badger bench
$ go get github.com/dgraph-io/badger-bench/...
  • Run go test -c and make sure everything compiles. Refer to the benchmarking logs below for commands to run individual benchmarks.

Benchmarking Logs and Blog Posts

We have performed comprehensive benchmarks against RocksDB, BoltDB and LMDB. Detailed logs of all the steps are made available in this repo. Refer to the blog posts for graphs and other information.