A small webassembly benchmark designed to run in a browser to test the difference in performance when serializing and deserializing BSON compared to JSON.
- Rust
- wasm-pack
- basic-http-server
- Or any other HTTP server of your choice.
Compile to a WASM module:
wasm-pack build --target no-modules --release
Execute the HTTP server:
basic-http-server
While the server is running open http://localhost:4000. The results will show on the browser's console, after freezing the tab for around 20 seconds.