Skip to content

Commit ef13c58

Browse files
chore: update benchmark results
Signed-off-by: Henry Gressmann <[email protected]>
1 parent cfe8b70 commit ef13c58

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

BENCHMARKS.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ All runtimes are compiled with the following settings:
3030

3131
| Benchmark | Native | TinyWasm\* | Wasmi | Wasmer (Single Pass) |
3232
| ------------ | -------- | ---------- | --------- | -------------------- |
33-
| `fib` | \*\* | ` 43.81µs` | `48.60µs` | ` 43.97µs` |
34-
| `fib-rec` | `0.26ms` | ` 20.99ms` | ` 4.64ms` | ` 0.50ms` |
35-
| `argon2id` | `0.53ms` | `107.77ms` | `47.76ms` | ` 4.49ms` |
36-
| `selfhosted` | `0.06ms` | ` 2.88ms` | ` 6.20ms` | `359.33ms` |
33+
| `fib` | \*\* | ` 43.60µs` | `48.27µs` | ` 44.99µs` |
34+
| `fib-rec` | `0.27ms` | ` 21.13ms` | ` 4.63ms` | ` 0.47ms` |
35+
| `argon2id` | `0.53ms` | ` 99.16ms` | `45.00ms` | ` 4.59ms` |
36+
| `selfhosted` | `0.05ms` | ` 1.84ms` | ` 6.51ms` | `446.48ms` |
3737

38-
_\* converting WASM to TinyWasm bytecode is not included. I takes ~7ms to convert `tinywasm.wasm` to TinyWasm bytecode._
38+
_\* converting WASM to TinyWasm bytecode is not included. I takes ~5.7ms to convert `tinywasm.wasm` to TinyWasm bytecode._
3939
_\*\* essentially instant as it gets computed at compile time._
4040

4141
### Fib

crates/benchmarks/benches/argon2id.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ fn criterion_benchmark(c: &mut Criterion) {
4545
group.measurement_time(std::time::Duration::from_secs(7));
4646
group.sample_size(10);
4747

48-
// group.bench_function("native", |b| b.iter(|| run_native(black_box(params))));
48+
group.bench_function("native", |b| b.iter(|| run_native(black_box(params))));
4949
group.bench_function("tinywasm", |b| b.iter(|| run_tinywasm(&twasm, black_box(params), "argon2id")));
50-
// group.bench_function("wasmi", |b| b.iter(|| run_wasmi(ARGON2ID, black_box(params), "argon2id")));
51-
// group.bench_function("wasmer", |b| b.iter(|| run_wasmer(ARGON2ID, black_box(params), "argon2id")));
50+
group.bench_function("wasmi", |b| b.iter(|| run_wasmi(ARGON2ID, black_box(params), "argon2id")));
51+
group.bench_function("wasmer", |b| b.iter(|| run_wasmer(ARGON2ID, black_box(params), "argon2id")));
5252
}
5353

5454
criterion_group!(

0 commit comments

Comments
 (0)