Skip to content

Commit

Permalink
feat(rooch-benchmarks): bench anyhow with/without std backtrace
Browse files Browse the repository at this point in the history
new version of anyhow with std backtrace is much slower: dtolnay/anyhow#347

```
cargo bench --bench bench_utils

...

anyhow_error_bench/anyhow_v1.0.93
                        time:   [15.040 ns 15.148 ns 15.259 ns]
                        change: [+1.5448% +2.1215% +2.7219%] (p = 0.00 < 0.05)
                        Performance has regressed.
anyhow_error_bench/anyhow_v1.0.76
                        time:   [6.2104 ns 6.2182 ns 6.2278 ns]
                        change: [-0.4029% -0.1998% +0.0002%] (p = 0.06 > 0.05)
                        No change in performance detected.
Found 10 outliers among 100 measurements (10.00%)
  2 (2.00%) high mild
  8 (8.00%) high severe
```
  • Loading branch information
popcnt1 committed Nov 10, 2024
1 parent e5ba242 commit 37c10d2
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 94 deletions.
Loading

0 comments on commit 37c10d2

Please sign in to comment.