diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-03-09 13:51:32 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-03-09 13:51:32 +0100 |
| commit | 735c7cb636edfd4704460c94a9c7d65e5bf4df48 (patch) | |
| tree | 5b60de853a4bb62649d2d1ce4732bdfa49ce29fb /BENCHMARKS.md | |
| parent | c50bae752f3e788faf66b376d065374cc4085931 (diff) | |
chore: improve documentation, tests
Closes #6
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'BENCHMARKS.md')
| -rw-r--r-- | BENCHMARKS.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/BENCHMARKS.md b/BENCHMARKS.md index 9ae3507..3a85e19 100644 --- a/BENCHMARKS.md +++ b/BENCHMARKS.md @@ -1,12 +1,14 @@ # Benchmark results -All benchmarks are run on a Ryzen 7 5800X with 32GB of RAM, running Linux 6.6. +All benchmarks are run on a Ryzen 7 5800X with 32GB of RAM on Linux 6.6. WebAssembly files are optimized using [wasm-opt](https://github.com/WebAssembly/binaryen), and the benchmark code is available in the `crates/benchmarks` folder. These are mainly preliminary benchmarks, and I will be rewriting the benchmarks to be more accurate and to test more features in the future. In particular, I want to test and improve memory usage, as well as the performance of the parser. +Take these results with a grain of salt, as they are not very accurate and are likely to change in the future. + ## WebAssembly Settings All WebAssembly files are compiled with the following settings: @@ -36,7 +38,8 @@ All runtimes are compiled with the following settings: | `argon2id` | `0.53ms` | ` 99.16ms` | `45.00ms` | ` 4.59ms` | | `selfhosted` | `0.05ms` | ` 1.84ms` | ` 6.51ms` | `446.48ms` | -_\* converting WASM to TinyWasm bytecode is not included. I takes ~5.7ms to convert `tinywasm.wasm` to TinyWasm bytecode._ +_\* Uses tinywasm's internal module format instead of `wasm`. It takes ~5.7ms to parse and validate `tinywasm.wasm`._ + _\*\* essentially instant as it gets computed at compile time._ ### Fib |
