Skip to content

Commit

Permalink
mention separated data collection and plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed May 19, 2024
1 parent dae7b36 commit cae18db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,11 @@ cargo criterion --bench criterion --message-format=json | cargo run --bin plot

This generates plots in the `target/wasmi-benchmarks` folder for all the benchmark groups.
In order to use this you may need to install `cargo-criterion` via `cargo install cargo-criterion`.

In case you want to collect data first and plot the data later you can also instead store
the benchmark results into a file and use the file to plot the data later:

```
cargo criterion --bench criterion --message-format=json > results.json
cat results.json | cargo run --bin plot
```

0 comments on commit cae18db

Please sign in to comment.