Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 735c7cb

Browse files
chore: improve documentation, tests
Closes #6 Signed-off-by: Henry Gressmann <[email protected]>
1 parent c50bae7 commit 735c7cb

File tree

21 files changed

+266
-203
lines changed

21 files changed

+266
-203
lines changed

BENCHMARKS.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Benchmark results
22

3-
All benchmarks are run on a Ryzen 7 5800X with 32GB of RAM, running Linux 6.6.
3+
All benchmarks are run on a Ryzen 7 5800X with 32GB of RAM on Linux 6.6.
44
WebAssembly files are optimized using [wasm-opt](https://github.com/WebAssembly/binaryen),
55
and the benchmark code is available in the `crates/benchmarks` folder.
66

77
These are mainly preliminary benchmarks, and I will be rewriting the benchmarks to be more accurate and to test more features in the future.
88
In particular, I want to test and improve memory usage, as well as the performance of the parser.
99

10+
Take these results with a grain of salt, as they are not very accurate and are likely to change in the future.
11+
1012
## WebAssembly Settings
1113

1214
All WebAssembly files are compiled with the following settings:
@@ -36,7 +38,8 @@ All runtimes are compiled with the following settings:
3638
| `argon2id` | `0.53ms` | ` 99.16ms` | `45.00ms` | ` 4.59ms` |
3739
| `selfhosted` | `0.05ms` | ` 1.84ms` | ` 6.51ms` | `446.48ms` |
3840

39-
_\* converting WASM to TinyWasm bytecode is not included. I takes ~5.7ms to convert `tinywasm.wasm` to TinyWasm bytecode._
41+
_\* Uses tinywasm's internal module format instead of `wasm`. It takes ~5.7ms to parse and validate `tinywasm.wasm`._
42+
4043
_\*\* essentially instant as it gets computed at compile time._
4144

4245
### Fib

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
- Improved documentation and added more tests
15+
1416
### Removed
1517

1618
## [0.5.0] - 2024-03-01

0 commit comments

Comments
 (0)