diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-02-24 14:50:52 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-02-24 14:50:52 +0100 |
| commit | 7f99f964f74f7e77203bd505e69411af6dcae040 (patch) | |
| tree | 1e46340ac51fe4252eb50307c4e8fe578f252c27 /BENCHMARKS.md | |
| parent | dea93272b80a7ae658318ce7af21f00cacae054d (diff) | |
docs: update benchmarks
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'BENCHMARKS.md')
| -rw-r--r-- | BENCHMARKS.md | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/BENCHMARKS.md b/BENCHMARKS.md index 450b751..5090043 100644 --- a/BENCHMARKS.md +++ b/BENCHMARKS.md @@ -22,18 +22,22 @@ All runtimes are compiled with the following settings: ## Versions -- `tinywasm`: `0.4.0` -- `wasmi`: `0.31.0` -- `wasmer`: `4.2.0` +- `tinywasm`: `0.4.1` +- `wasmi`: `0.31.2` +- `wasmer`: `4.2.5` ## Results -| Benchmark | Native | TinyWasm | Wasmi | Wasmer (Single Pass) | -| ------------ | ------ | -------- | -------- | -------------------- | -| `fib` | 6ns | 44.76µs | 48.96µs | 52µs | -| `fib-rec` | 284ns | 25.565ms | 5.11ms | 0.50ms | -| `argon2id` | 0.52ms | 110.08ms | 44.408ms | 4.76ms | -| `selfhosted` | 45µs | 2.08ms | 4.25ms | 258.87ms | +| Benchmark | Native | TinyWasm\* | Wasmi | Wasmer (Single Pass) | +| ------------ | -------- | ---------- | --------- | -------------------- | +| `fib` | \*\* | ` 44.11µs` | `49.46µs` | ` 50.65µs` | +| `fib-rec` | `0.26ms` | ` 24.91ms` | ` 4.62ms` | ` 0.49ms` | +| `argon2id` | `0.53ms` | `109.38ms` | `45.85ms` | ` 4.82ms` | +| `selfhosted` | `0.05ms` | ` 2.07ms` | ` 4.26ms` | `260.32ms` | + +_\* converting WASM to TinyWasm bytecode is not included. 7.2.ms is the time it takes to convert `tinywasm.wasm` to TinyWasm bytecode._ + +_\*\* essentially instant as it gets computed at compile time._ ### Fib |
