Skip to content

Run the benchmarks

Jose Emilio Labra Gayo edited this page Aug 31, 2024 · 4 revisions

Run the benchmarks

The benchmarks are located in the benches folder of each module. For example, the benchmarks of shex_compact are at shex_compact/benches.

cd shex_compact

Run the benchmarks:

cargo bench

And the HTML report will be available at:

../target/criterion/[NAME OF BENCHMARK]/report/index.html

Profiling to generate framegraphs

cargo bench --bench shex_parse -- --profile-time 20

And the flamegraph is located at:

../target/criterion/shex\ parse/profile/flamegraph.svg

More information about benchmarks and profilers in Rust

Clone this wiki locally