Skip to content
kvbench

goleveldb

goleveldb is a pure-Go port of LevelDB. No standout strength, no glaring weakness, and the smallest disk footprint of any engine measured.

Shape: LSM, pure Go, ordered Repository: github.com/syndtr/goleveldb

goleveldb is a pure-Go port of Google's LevelDB, the original LSM. It is the balanced engine in this set: it never tops a table and never bottoms one, and it packs data smaller on disk than anything else here. When you want an unsurprising LSM with no native dependencies, this is it.

Best at

  • Smallest footprint. 0.11x space amplification, the tightest measured, and it stays small under updates. See footprint.
  • Balance. 815,000 reads/sec, 28,000 fresh writes/sec, 156,000 keys/sec scanned: solid on every workload without a weak spot.
  • Ordered scans. Supported and respectable, the third-fastest scanner. See range scans.

Watch out for

  • No headline strength. Whatever the workload, another engine is faster at it; goleveldb's case is consistency, not peak speed.
  • Per-commit durability. 463 durable writes/sec, no group commit.

Reach for it when

You want a dependable, pure-Go LSM that does everything reasonably, takes the least disk, and never surprises you. If you need the strongest mixed load or the top durable-write rate, pebble and badger edge it; for plain balance and the smallest footprint, goleveldb is a fine choice.