array size | sequential |
parallel: 4 threads |
parallel: 4 threads, 1_000 block |
---|---|---|---|
10_000_000 |
703.31 ms (β
1.00x) |
235.82 ms (π 2.98x faster) |
211.91 ms (π 3.32x faster) |
50_000_000 |
3.97 s (β
1.00x) |
1.24 s (π 3.21x faster) |
1.15 s (π 3.46x faster) |
100_000_000 |
8.01 s (β
1.00x) |
2.45 s (π 3.26x faster) |
2.25 s (π 3.56x faster) |
array size | standard sequentia |
parallel: 4 threads |
parallel: 4 threads, 1_000 block |
---|---|---|---|
10_000_000 |
642.98 ms (β
1.00x) |
235.82 ms (π 2.73x faster) |
211.91 ms (π 3.03x faster) |
50_000_000 |
3.58 s (β
1.00x) |
1.24 s (π 2.89x faster) |
1.15 s (π 3.11x faster) |
100_000_000 |
7.34 s (β
1.00x) |
2.45 s (π 3.00x faster) |
2.25 s (π 3.26x faster) |
graph cube side | sequential |
parallel: 4 threads |
---|---|---|
500 |
28.48 s (β
1.00x) |
9.48 s (π 3.01x faster) |
- install
cargo
cargo bench
cargo install criterion
cargo install criterion-table
cargo criterion --message-format=json | criterion-table > BENCHMARKS.md