tree: 25bf35913554c4d48b7ee10ad324be254dbf1d57 [path history] [tgz]
  1. benches/
  2. data/
  3. src/
  4. Cargo.toml
  5. README.md
sparse_strips/vello_bench/README.md

Setup

In order to run the integration benchmarks with custom SVGs, you need to add the SVGs you want to run into the data folder. For each SVG file in that folder, a corresponding integration test will be generated automatically.

If you don't add any SVGs, the benchmarking harness will only use the ghostscript tiger by default.

In order to run the benches, you can simply run cargo bench. However, in most cases you probably don't want to rerun all benchmarks, in which case you can also provide a filter for the name of the benchmarks you want to run, like cargo bench -- fine/fill

Workflow

Save a control run with:

cargo bench --bench main -- --save-baseline control [TEST NAME FILTER]

Then, apply some changes to the code and compare it to the control with:

# Rerun bench against new changes
cargo bench -- [TEST NAME FILTER]
# Compare it against control
cargo bench --bench main -- --load-baseline new --baseline control