An open API service indexing awesome lists of open source software.

https://github.com/dgraph-io/badger-bench

Benchmarks of Badger
https://github.com/dgraph-io/badger-bench

Last synced: about 1 year ago
JSON representation

Benchmarks of Badger

Awesome Lists containing this project

README

          

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

[BadgerDB]:https://github.com/dgraph-io/badger

## Setting Up
- Install rocksdb using steps here: https://github.com/facebook/rocksdb/blob/master/INSTALL.md

```
$ 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.

* [Benchmarking log for RocksDB](https://github.com/dgraph-io/badger-bench/blob/master/BENCH-rocks.txt) (link to [blog post](https://blog.dgraph.io/post/badger/))
* [Benchmarking log for BoltDB and LMDB](https://github.com/dgraph-io/badger-bench/blob/master/BENCH-lmdb-bolt.md) (link to [blog post](https://blog.dgraph.io/post/badger-lmdb-boltdb/))