Skip to content

Instantly share code, notes, and snippets.

@kevsmith
Created December 5, 2012 16:12
Show Gist options
  • Save kevsmith/4217004 to your computer and use it in GitHub Desktop.
Save kevsmith/4217004 to your computer and use it in GitHub Desktop.
LevelDB: Snappy vs. lz4
➜ leveldb git:(lz4) ✗ ./db_bench
LevelDB: version 1.7
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
------------------------------------------------
snappycomp : 7.534 micros/op; 518.5 MB/s (output: 55.1%)
snappyuncomp : 1.391 micros/op; 2808.1 MB/s
lz4comp : 6.210 micros/op; 629.0 MB/s (output: 55.4%)
lz4uncomp : 0.641 micros/op; 6097.9 MB/s
@doubleyou
Copy link

lz4 rocks, huh?

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