tree: abefc0d52b34756465dbea9163f168af045c71ff [path history] [tgz]
  1. benches/
  2. config/
  3. src/
  4. bench.toml
  5. Cargo.toml
  6. README.md
benchmarks/README.md

Benchmarks

Test Data

todo

Config

A config template can be found in config/bench.toml.

Run benchmarks

In root directory of ceresdb (not this directory ceresdb/benchmarks), run the following command:

ANALYTIC_BENCH_CONFIG_PATH=/path/to/bench.toml cargo bench -p benchmarks

Print logs:

RUST_LOG=info ANALYTIC_BENCH_CONFIG_PATH=/path/to/bench.toml cargo bench -p benchmarks

Run specific bench:

ANALYTIC_BENCH_CONFIG_PATH=/path/to/bench.toml cargo bench --bench bench -p benchmarks -- read_parquet

If you want to enable pprof, add --profile-time 60, see pprof-rs#127