Skip to content

Use callbacks to demonstrate the write performance of Badger.#1

Open
manishrjain wants to merge 1 commit into
rawfalafel:masterfrom
manishrjain:master
Open

Use callbacks to demonstrate the write performance of Badger.#1
manishrjain wants to merge 1 commit into
rawfalafel:masterfrom
manishrjain:master

Conversation

@manishrjain

Copy link
Copy Markdown

Both Bolt and LevelDB are great software but we designed Badger for much faster read-write performance, hence I'm submitting this change for your consideration.

The existing benchmarks do not use callbacks, which is the recommended way to achieve the better write throughput provided by Badger when writes are being done serially. When using callbacks, this change (see Asciinema link below) clearly demonstrates that Badger is a lot superior in terms of write throughput compared to LevelDB, and definitely compared to Bolt.

See: https://asciinema.org/a/Qgyf8C50YRbtH7WpixSaBKDUQ

@manishrjain

Copy link
Copy Markdown
Author

Based on these benchmarks,

Random Write:

  • Badger: 20ms (milliseconds)
  • Bolt: 7m10s
  • LevelDB: 4.3s

Random Read:

  • Badger: 1.63s
  • Bolt: 2.36s
  • LevelDB: 9.48s

Note that these benchmarks were run on my desktop, which has an SSD. But, even with HDD, it should not be too much different, you'd just want to change the options to say LSMOnlyOptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant