Crate cuprate_benchmark

Source
Expand description

§cuprate-benchmark

This crate links all benchmarks together into a single binary that can be run as: cuprate-benchmark.

cuprate-benchmark will run all enabled benchmarks sequentially and print data at the end.

§Benchmarks

Benchmarks are opt-in and enabled via features.

FeatureEnables which benchmark crate?
examplecuprate-benchmark-example
databasecuprate-benchmark-database

§Features

These are features that aren’t for enabling benchmarks, but rather for other things.

Since cuprate-benchmark is built right before it is ran, these features almost act like command line arguments.

FeaturesDoes what
jsonPrints JSON timings instead of a markdown table
traceUse the trace log-level
debugUse the debug log-level
warnUse the warn log-level
infoUse the info log-level (default)
errorUse the error log-level

Modules§

Functions§

  • main 🔒
    What main() does: