surrealpatch/lib/benches
2023-09-26 13:02:53 +00:00
..
executor.rs [security] Introduce "allow-guests". Deny all caps by default (#2547) 2023-08-30 18:01:30 +00:00
index_btree.rs Switch transaction to enum from bool (#2743) 2023-09-26 13:02:53 +00:00
parser.rs Testing - Add CPU profiling to microbenchmarks (#2000) 2023-05-16 23:31:30 +01:00
processor.rs [iam] RBAC and multiple root users (#2176) 2023-07-29 18:47:25 +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.