Skip to content

Commit

Permalink
update bench
Browse files Browse the repository at this point in the history
  • Loading branch information
yoav-lavi committed Jul 16, 2023
1 parent bf9c9f5 commit b8f4a04
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,37 +414,37 @@ The Melody file extensions are `.mdy` and `.melody`
## Performance
Last measured on v0.13.10
Last measured on v0.19.0
Measured on an 8 core 2021 MacBook Pro 14-inch, Apple M1 Pro using [criterion](https://github.com/bheisler/criterion.rs):
- 8 lines:
```
compiler/normal (8 lines)
time: [3.6734 us 3.6775 us 3.6809 us]
slope [3.6734 us 3.6809 us] R^2 [0.9999393 0.9999460]
mean [3.6726 us 3.6854 us] std. dev. [3.8234 ns 15.619 ns]
median [3.6703 us 3.6833 us] med. abs. dev. [1.3873 ns 14.729 ns]
time: [4.0579 µs 4.0665 µs 4.0788 µs]
slope [4.0579 µs 4.0788 µs] R^2 [0.9996538 0.9995633]
mean [4.0555 µs 4.0806 µs] std. dev. [11.018 ns 26.342 ns]
median [4.0500 µs 4.0852 µs] med. abs. dev. [5.6889 ns 35.806 ns]
```
- 1M lines:
```
compiler/long input (1M lines)
time: [344.68 ms 346.83 ms 349.29 ms]
mean [344.68 ms 349.29 ms] std. dev. [1.4962 ms 4.9835 ms]
median [344.16 ms 350.06 ms] med. abs. dev. [407.85 us 6.3428 ms]
compiler/long input (1M lines)
time: [400.97 ms 402.31 ms 403.53 ms]
mean [400.97 ms 403.53 ms] std. dev. [773.42 µs 2.9886 ms]
median [401.22 ms 403.39 ms] med. abs. dev. [59.042 µs 3.5129 ms]
```
- Deeply nested:
```
compiler/deeply nested
time: [3.8017 us 3.8150 us 3.8342 us]
slope [3.8017 us 3.8342 us] R^2 [0.9992078 0.9989523]
mean [3.8158 us 3.8656 us] std. dev. [8.8095 ns 65.691 ns]
median [3.8144 us 3.8397 us] med. abs. dev. [2.5630 ns 40.223 ns]
compiler/deeply nested
time: [5.8085 µs 5.8291 µs 5.8514 µs]
slope [5.8085 µs 5.8514 µs] R^2 [0.9992861 0.9992461]
mean [5.8064 µs 5.8519 µs] std. dev. [21.027 ns 49.152 ns]
median [5.7949 µs 5.8583 µs] med. abs. dev. [3.3348 ns 64.628 ns]
```
To reproduce, run `cargo bench` or `cargo xtask benchmark`
Expand Down

0 comments on commit b8f4a04

Please sign in to comment.