Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
199 changes: 199 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,10 @@ default = ["scraper-atomic"]
scraper-atomic = ["scraper/atomic"]
xpath = ["dep:xee-xpath"]
cli-examples = ["dep:clap"]

[dev-dependencies]
criterion = { version = "0.8.2", default-features = false, features = ["cargo_bench_support", "rayon", "html_reports"] }

[[bench]]
name = "criterion_api"
harness = false
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ HTML/XML fixtures instead of external websites.

## Benchmarks

For statistical public-API benchmarks with Criterion, run
`cargo bench -p silkworm-rs --bench criterion_api` (optionally add
`--features xpath`). See [Criterion workloads and reproducible comparisons](docs/benchmarks-criterion.md).

Run the built-in benchmark suite:

```bash
Expand Down
Loading
Loading