sapling/lib/blackbox/Cargo.toml
Jun Wu 4f845ca603 blackbox: add some benchmarks
Summary:
This gives us some data about blackbox performance, and interesting areas to improve.

  blackbox insertion (400 entries)                   99.856 ms  12.896 KB/ 54.109 KB  16.012 KB
  blackbox filter by index (4000 entries)             2.259 ms       0 B /      0 B
  blackbox filter by pattern (4000 entries)           9.592 ms       0 B /      0 B
                                                   (wall time) (IO read  / write    ) (log size)
                                                               (not counting mmap IO)

Takeaways:
- Insertion performance is bad.
- Blackbox size looks okay.
- Pattern matching alone can be slow for large data (ex. 100MB log requires ~6s
  matching). Therefore using indexes to narrow down entries seems worthwhile.

Reviewed By: markbt

Differential Revision: D15685473

fbshipit-source-id: 44ffffefd77f9e22699755b2ec520b1fc57ae244
2019-06-26 11:03:26 -07:00

26 lines
415 B
TOML

[package]
name = "blackbox"
version = "0.1.0"
edition = "2018"
[dependencies]
byteorder = "1"
failure = "0.1"
indexedlog = { path = "../indexedlog" }
lazy_static = "1"
libc = "0.2"
rand = "0.6"
serde = "1"
serde_alt = { path = "serde_alt" }
serde_cbor = "0.9"
serde_derive = "1"
serde_json = "1"
[dev-dependencies]
minibench = { path = "../minibench" }
tempfile = "3"
[[bench]]
name = "blackbox"
harness = false