Skip to content

Commit 598d6a0

Browse files
committed
docs: add bench result on readme
1 parent fc83598 commit 598d6a0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,29 @@ println!("{:?}", res);
1212

1313
For more details, checkout the [docs.rs](https://docs.rs/sass-embedded)
1414

15+
## Benchmark
16+
17+
[Compile bootstrap with `sass-embedded-host-rust`, `sass-embedded-host-node`, and `dart-sass`](https://github.com/ahabhgk/sass-embedded-host-rust/tree/main/benches/bootstrap)
18+
19+
```bash
20+
$ cargo bench bootstrap
21+
Benchmarking bootstrap/Host Rust: Warming up for 3.0000 s
22+
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 5.6s.
23+
bootstrap/Host Rust time: [502.81 ms 507.54 ms 512.59 ms]
24+
change: [-14.057% -9.4932% -5.7950%] (p = 0.00 < 0.05)
25+
Performance has improved.
26+
Benchmarking bootstrap/Host Node: Warming up for 3.0000 s
27+
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 14.7s.
28+
bootstrap/Host Node time: [1.1295 s 1.2127 s 1.3098 s]
29+
change: [+1.1844% +9.3527% +18.371%] (p = 0.05 > 0.05)
30+
No change in performance detected.
31+
Benchmarking bootstrap/Dart Sass: Warming up for 3.0000 s
32+
Warning: Unable to complete 10 samples in 5.0s. You may wish to increase target time to 24.8s.
33+
bootstrap/Dart Sass time: [2.4472 s 2.4728 s 2.4986 s]
34+
change: [-1.1681% +1.3988% +3.8141%] (p = 0.31 > 0.05)
35+
No change in performance detected.
36+
```
37+
1538
## Contributing
1639

1740
1. Install the [Protocol Buffer Compiler](https://grpc.io/docs/protoc-installation/).

0 commit comments

Comments
 (0)