The benchmark suites
Each raftdb-bench suite, the question it answers and its target.
The suites of the raftdb-bench harness (not part of the download). The target prefix (S1, S2, ...) is the stage
of the build plan the target belongs to; N10 is a portability target.
| Suite | File | Question | Targets |
|---|---|---|---|
memory-baseline | memory.rs | bytes of overhead per entry of hash table layouts; point-read speed | overhead at most 16 B, reads at least 5M/s |
doc-format | docs.rs | document size against JSON and BSON; field-read and filter speed | at most 0.5 of JSON, at most 0.8 of BSON, field reads at least 20M/s |
exec-filter | exec.rs | plan cache hit, scan speed on a corpus larger than cache | cache hit at most 5 us, scan at least 50M docs/s |
portable | portable.rs | portable CRC and bucket search against the platform versions | portable CRC at least 1 GB/s |
shard | shard.rs | cross-core ring speed, point reads routed to the owning core, connection-state model | ring at least 15M msgs/s, routed reads at least 2M/s |
bloom | bloom.rs | Bloom filter accuracy, size and absent-key speed beside the textbook layout | false positives at most 1.3 %, at most 1.3 B/key, at least 20M checks/s |
mvcc | mvcc.rs | version header size, snapshot visibility speed | header at most 12 B, at least 100M checks/s typical |
sim | sim.rs | crash-schedule simulation of the log and of the whole table on a simulated disk; planted bug | 0 violations, bug found within 1,000 schedules, at least 2,000 schedules/s |
server | net.rs | whole stack over loopback TCP: pipelined point reads, durable inserts, filter count scan, JSON page | at least 2M reads/s; at least 300k durable inserts/s; at least 50M docs/s scan |
index | index.rs | secondary index size, equality lookup, range scan, update speed | at most 13 B/entry, at least 2M lookups/s, at least 100M range entries/s, at least 1M updates/s |
proto | proto.rs | wire codec: encode, frame and parse per message shape | at least 20M small requests/s |
db | db.rs | whole write path with real fsync: blocking against pipelined commits, restart replay | at least 300k durable inserts/s, replay at least 2M records/s |
schema | schema.rs | strict schema validation speed, false rejects, missed wrong types | at least 3M docs/s, 0 false rejects, 100 % caught |
store | store.rs | collection overhead per entry, windowed and single point reads, inserts, updates | at most 24 B/entry, at least 5M reads/s (32-key window) |
wal | wal.rs | durable insert rate and latency with group commit, raw fsync floor, recovery speed | at least 300k records/s, p99 at most 2 ms; recovery at least 1 GB/s |
Notes#
walhas a thread-per-core model and a 256-thread reference run; the reference run is no target.simis a correctness suite with a speed target: it counts schedules in which the log or the table breaks its contract, and how fast a planted bug is found.- Target numbers come from
raftdb-core::targets; this table is a copy of the benchmark documentation.