Drum

MIT licensed Apache licensed Build Status crates.io

A BitCask inspired storage API for Rust.

Drum is 100% safe code:

sh $ ack unsafe src | wc 0 0 0

Performance

See the bottom of the readme for benchmarks, so far the numbers look like:

Disk

Memory

``` running 9 tests test tests::benchinsert ... ok test tests::keys ... ok test tests::insertget ... ok test tests::multipleinsert ... ok test tests::benchget ... ok test tests::insertremove ... ok test tests::benchfileget ... ok test tests::reopen ... ok test tests::benchfile_insert ... ok

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured ```

test tests::bench_file_get ... bench: 1,236 ns/iter (+/- 157) test tests::bench_file_insert ... bench: 2,092 ns/iter (+/- 304) test tests::bench_get ... bench: 86 ns/iter (+/- 6) test tests::bench_insert ... bench: 196 ns/iter (+/- 22)

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.