File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,27 @@ All runtimes are compiled with the following settings:
22
22
23
23
- ` opt-level ` is set to 3, ` lto ` is set to ` thin ` , ` codegen-units ` is set to 1.
24
24
- No CPU-specific optimizations are used as AVX2 can reduce performance by more than 50% on some CPUs.
25
+ - Default runtime settings are used
25
26
26
27
## Versions
27
28
28
- - ` tinywasm ` : ` 0.6.2 `
29
+ - ` tinywasm ` : ` 0.7.0 `
29
30
- ` wasmi ` : ` 0.31.2 `
30
- - ` wasmer ` : ` 4.2.8 `
31
+ - ` wasmer ` : ` 4.3.0 `
31
32
32
33
## Results
33
34
35
+ > Results include the time it takes to parse/compile the WebAssembly file and execute the function.
36
+
34
37
| Benchmark | Native | TinyWasm | Wasmi | Wasmer (Single Pass) |
35
38
| ------------ | -------- | ---------- | --------- | -------------------- |
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.
40
46
41
47
### Fib
42
48
You can’t perform that action at this time.
0 commit comments