surrealpatch/lib/benches
Rushmore Mushambi 2d19ac9f7a
Add live query API (#2919)
Co-authored-by: Emmanuel Keller <keller.emmanuel@gmail.com>
2023-11-13 17:19:47 +00:00
..
executor.rs Add live query API (#2919) 2023-11-13 17:19:47 +00:00
index_btree.rs Add live query API (#2919) 2023-11-13 17:19:47 +00:00
index_mtree.rs Add live query API (#2919) 2023-11-13 17:19:47 +00:00
move_vs_clone.rs Feat: Implements MTree index deletions (#2738) 2023-10-26 22:33:06 +01:00
parser.rs Testing - Add CPU profiling to microbenchmarks (#2000) 2023-05-16 23:31:30 +01:00
processor.rs Add live query API (#2919) 2023-11-13 17:19:47 +00:00
README.md Testing - Add CPU profiling to microbenchmarks (#2000) 2023-05-16 23:31:30 +01:00

Benchmarks

This directory contains some micro-benchmarks that can help objectively establish the performance implications of a change.

Manual usage

Execute the following command at the top level of the repository:

cargo bench --package surrealdb --no-default-features --features kv-mem,scripting,http

Profiling

Some of the benchmarks support CPU profiling:

cargo bench --package surrealdb --no-default-features --features kv-mem,scripting,http -- --profile-time=5

Once complete, check the target/criterion/**/profile/flamegraph.svg files.