tempo_bench/
main.rs

1mod cmd;
2mod opts;
3
4use clap::Parser;
5use mimalloc::MiMalloc;
6use opts::{TempoBench, TempoBenchSubcommand};
7
8#[global_allocator]
9// Increases RPS by ~5.5% at the time of
10// writing. ~3.3% faster than jemalloc.
11static GLOBAL: MiMalloc = MiMalloc;
12
13#[tokio::main]
14async fn main() -> eyre::Result<()> {
15    let args = TempoBench::parse();
16
17    match args.cmd {
18        TempoBenchSubcommand::RunMaxTps(cmd) => cmd.run().await,
19    }
20}