You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Brunch` is a very simple Rust micro-benchmark runner inspired by [`easybench`](https://crates.io/crates/easybench). It has roughly a million times fewer dependencies than [`criterion`](https://crates.io/crates/criterion), does not require nightly, and maintains a "last run" state so can show relative changes benchmark-to-benchmark. The formatting is also quite pretty.
8
9
@@ -24,7 +25,7 @@ Add `brunch` to your `dev-dependencies` in `Cargo.toml`, like:
24
25
25
26
```
26
27
[dev-dependencies]
27
-
brunch = "0.1.*"
28
+
brunch = "0.2.*"
28
29
```
29
30
30
31
Benchemarks are also defined in `Cargo.toml` the usual way. Just be sure to set `harness = false`:
Copy file name to clipboardExpand all lines: src/lib.rs
-20Lines changed: 0 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -15,25 +15,6 @@ This crate is still under heavy development. It is ~~subject to~~ going to chang
15
15
16
16
17
17
18
-
## Installation
19
-
20
-
Add `brunch` to your `dev-dependencies` in `Cargo.toml`, like:
21
-
22
-
```ignore
23
-
[dev-dependencies]
24
-
brunch = "0.1.*"
25
-
```
26
-
27
-
Benchemarks are also defined in `Cargo.toml` the usual way. Just be sure to set `harness = false`:
28
-
29
-
```ignore
30
-
[[bench]]
31
-
name = "encode"
32
-
harness = false
33
-
```
34
-
35
-
36
-
37
18
## Usage
38
19
39
20
Setup is currently simple if primitive, requiring you drop a call to the [`benches`] macro in the benchmark file. It will generate a `main()` method, run the supplied benchmarks, and give you the results.
@@ -101,7 +82,6 @@ There are currently three styles of callback:
0 commit comments