https://github.com/motss/wasm-with-rust
Web Assembly with Rust in Node.js
https://github.com/motss/wasm-with-rust
benchmark fibonacci javascript js rust v8 wasm webassembly
Last synced: about 1 month ago
JSON representation
Web Assembly with Rust in Node.js
- Host: GitHub
- URL: https://github.com/motss/wasm-with-rust
- Owner: motss
- Created: 2017-11-28T15:29:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T13:57:21.000Z (over 7 years ago)
- Last Synced: 2025-02-02T01:16:35.467Z (3 months ago)
- Topics: benchmark, fibonacci, javascript, js, rust, v8, wasm, webassembly
- Language: HTML
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WASM vs JS
> TLDR; Chrome 61 runs the fastest.
## Testing methodology
Run `fibonacci(32)` repeatedly for `1e3 - 1` times and measure the total execution time.
## Testing machine
| Component | Specs |
| --- | --- |
| CPU | Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz 4C8T |
| RAM | 16.0GB DDR-4 2133MHz |## Benchmark results on different modern browsers
| Total Execution time (ms) | Edge 16 | Chrome 61 | Chrome 64 | Firefox Quantum (FF57) | Firefox Nightly (FF59) |
| --- | ---: | ---: | ---: | ---: | ---: |
| wasm | - | **7841.225** | 8575.750 | 8963.590 | 8742.015 |
| js | - | **19288.455** | 23067.515 | 20580.420 | 20696.595 |_** Unable to run on Edge 16 without page crashing._