Performance

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.

SuiteFileQuestionTargets
memory-baselinememory.rsbytes of overhead per entry of hash table layouts; point-read speedoverhead at most 16 B, reads at least 5M/s
doc-formatdocs.rsdocument size against JSON and BSON; field-read and filter speedat most 0.5 of JSON, at most 0.8 of BSON, field reads at least 20M/s
exec-filterexec.rsplan cache hit, scan speed on a corpus larger than cachecache hit at most 5 us, scan at least 50M docs/s
portableportable.rsportable CRC and bucket search against the platform versionsportable CRC at least 1 GB/s
shardshard.rscross-core ring speed, point reads routed to the owning core, connection-state modelring at least 15M msgs/s, routed reads at least 2M/s
bloombloom.rsBloom filter accuracy, size and absent-key speed beside the textbook layoutfalse positives at most 1.3 %, at most 1.3 B/key, at least 20M checks/s
mvccmvcc.rsversion header size, snapshot visibility speedheader at most 12 B, at least 100M checks/s typical
simsim.rscrash-schedule simulation of the log and of the whole table on a simulated disk; planted bug0 violations, bug found within 1,000 schedules, at least 2,000 schedules/s
servernet.rswhole stack over loopback TCP: pipelined point reads, durable inserts, filter count scan, JSON pageat least 2M reads/s; at least 300k durable inserts/s; at least 50M docs/s scan
indexindex.rssecondary index size, equality lookup, range scan, update speedat most 13 B/entry, at least 2M lookups/s, at least 100M range entries/s, at least 1M updates/s
protoproto.rswire codec: encode, frame and parse per message shapeat least 20M small requests/s
dbdb.rswhole write path with real fsync: blocking against pipelined commits, restart replayat least 300k durable inserts/s, replay at least 2M records/s
schemaschema.rsstrict schema validation speed, false rejects, missed wrong typesat least 3M docs/s, 0 false rejects, 100 % caught
storestore.rscollection overhead per entry, windowed and single point reads, inserts, updatesat most 24 B/entry, at least 5M reads/s (32-key window)
walwal.rsdurable insert rate and latency with group commit, raw fsync floor, recovery speedat least 300k records/s, p99 at most 2 ms; recovery at least 1 GB/s

Notes#

  • wal has a thread-per-core model and a 256-thread reference run; the reference run is no target.
  • sim is 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.

See also#