Skip to content

Commit 41d0ff6

Browse files
chore: update benchmarks
Signed-off-by: Henry Gressmann <[email protected]>
1 parent d9cdd0b commit 41d0ff6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

BENCHMARKS.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,27 @@ All runtimes are compiled with the following settings:
2222

2323
- `opt-level` is set to 3, `lto` is set to `thin`, `codegen-units` is set to 1.
2424
- No CPU-specific optimizations are used as AVX2 can reduce performance by more than 50% on some CPUs.
25+
- Default runtime settings are used
2526

2627
## Versions
2728

28-
- `tinywasm`: `0.6.2`
29+
- `tinywasm`: `0.7.0`
2930
- `wasmi`: `0.31.2`
30-
- `wasmer`: `4.2.8`
31+
- `wasmer`: `4.3.0`
3132

3233
## Results
3334

35+
> Results include the time it takes to parse/compile the WebAssembly file and execute the function.
36+
3437
| Benchmark | Native | TinyWasm | Wasmi | Wasmer (Single Pass) |
3538
| ------------ | -------- | ---------- | --------- | -------------------- |
36-
| `fib` | `0ms` | ` 18.70µs` | `18.53µs` | ` 48.09µs` |
37-
| `fib-rec` | `0.27ms` | ` 16.02ms` | ` 4.96ms` | ` 0.47ms` |
38-
| `argon2id` | `0.53ms` | ` 80.54ms` | `46.36ms` | ` 4.82ms` |
39-
| `selfhosted` | `0.05ms` | ` 7.26ms` | ` 6.51ms` | `446.48ms` |
39+
| `fib` | `6.33µs` | ` 19.18µs` | `18.26µs` | ` 51.20µs` |
40+
| `fib-rec` | `0.27ms` | ` 16.09ms` | ` 5.08ms` | ` 0.47ms` |
41+
| `argon2id` | `0.50ms` | ` 89.52ms` | `45.31ms` | ` 4.74ms` |
42+
| `selfhosted` | `0.05ms` | ` 7.93ms` | ` 7.54ms` | `512.45ms` |
43+
44+
> Note that parsing is still pretty slow, especially for the `selfhosted` benchmark, taking up `~6ms` for TinyWasm.
45+
> This can be improved by using the `archive` feature, which pre-parses the WebAssembly file into tinywasm's custom bytecode format.
4046
4147
### Fib
4248

0 commit comments

Comments
 (0)