When try to check performance locally, I execute the command below as mentioned in the readme,
cargo bench_parser --save-baseline main
But i get this error message. error: no such command: bench_parser
After that, I ran the command below, it worked fine.
cargo bench --bench js_formatter -- --save-baseline main
Can I fix it?
Expectations
Benchmark
This crate contains benchmark suites for the project.
Criterion is used to generate benchmark results.
Parser Benchmark
To get a benchmark comparison, you need to run the benchmark for main branch and your PR:
# (commit your code on pr branch, run)
git checkout main
cargo bench --bench js_parser -- --save-baseline main
git checkout -
cargo bench --bench js_parser -- --save-baseline pr
critcmp main pr # (cargo install critcmp)
Documentation URL
https://github.com/biomejs/biome/tree/main/xtask/bench
Description
When try to check performance locally, I execute the command below as mentioned in the readme,
cargo bench_parser --save-baseline main
But i get this error message.error: no such command: bench_parser
After that, I ran the command below, it worked fine.cargo bench --bench js_formatter -- --save-baseline main
Can I fix it?
Expectations
Benchmark
This crate contains benchmark suites for the project.
Criterion is used to generate benchmark results.
Parser Benchmark
To get a benchmark comparison, you need to run the benchmark for
main
branch and your PR:This will give us
The 1.xx column is the percentage difference, larger means worse. For example jquery is 16% slower on main. And the pr branch performs better overall.
Formatter benchmark
To get a benchmark comparison, you need to run the benchmark for
main
branch and your PR:Heap Profiling using
dhat
Code of Conduct