mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-13 06:51:34 +00:00
Update n-body sources and binary for rust. Add bench results (#172)
This commit is contained in:
@ -25,3 +25,23 @@ To run the benchmark:
|
||||
```
|
||||
$> npm run test [steps=1000000]
|
||||
```
|
||||
|
||||
Benchmark
|
||||
=========
|
||||
|
||||
***Environment:***
|
||||
- MacBook Pro (Retina, 15-inch, Late 2013)
|
||||
- macOS 10.13.5
|
||||
- node.js v10.6.0
|
||||
- rustc 1.29.0-nightly (254f8796b 2018-07-13)
|
||||
|
||||
***Results:***
|
||||
|
||||
| Target | Time, ***ms*** | Size, ***KB*** |
|
||||
|-------------------------|-----------------|----------------|
|
||||
| **AssemblyScript WASM** | **3167** | **2** |
|
||||
| AssemblyScript ASMJS | 3633 | 21* |
|
||||
| JavaScript | 2628 | 5* |
|
||||
| Rust WASM | 3876 | 15 |
|
||||
|
||||
___* unminified___
|
||||
|
Reference in New Issue
Block a user