Skip to content

Commit

Permalink
Add script to summarize benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
kazimuth committed Oct 3, 2023
1 parent 8f9ff27 commit c18b16f
Show file tree
Hide file tree
Showing 6 changed files with 747 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
url = "2.3.1"
urlencoding = "2.1.2"
uuid = { version = "1.2.1", features = ["v4"] }
walkdir = "2.2.5"
wasmbin = "0.6"

# wasmer prior to 4.1.1 had a signal handling bug on macOS.
Expand Down
5 changes: 5 additions & 0 deletions crates/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ harness = false
name = "generic"
harness = false

[[bin]]
name = "summarize"

[lib]
bench = false

Expand All @@ -39,3 +42,5 @@ byte-unit.workspace = true
futures.workspace = true
tracing-subscriber.workspace = true
lazy_static.workspace = true
walkdir.workspace = true
regex.workspace = true
2 changes: 2 additions & 0 deletions crates/bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ There are two ways to write benchmarks:
- Targeted, non-generic benchmarks (`benches/special.rs`)
- Generic over database backends (`benches/generic.rs`)

See the following sections for how to write these.

### Targeted benchmarks
These are regular [Criterion.rs](https://github.com/bheisler/criterion.rs) benchmarks. Nothing fancy, do whatever you like with these. Put them in `benches/special.rs`.

Expand Down
1 change: 1 addition & 0 deletions crates/bench/clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
disallowed-macros = []
Loading

0 comments on commit c18b16f

Please sign in to comment.