mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
Update Rust n-body build (#294)
This commit is contained in:
parent
376afd45fc
commit
afb8fe7762
@ -31,9 +31,9 @@ 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)
|
||||
- macOS 10.14
|
||||
- node.js v10.11.0
|
||||
- rustc 1.31.0-nightly (4bd4e4130 2018-10-25)
|
||||
|
||||
***Results:***
|
||||
|
||||
@ -42,6 +42,6 @@ Benchmark
|
||||
| **AssemblyScript WASM** | **3167** | **2** |
|
||||
| AssemblyScript ASMJS | 3633 | 21* |
|
||||
| JavaScript | 2628 | 5* |
|
||||
| Rust WASM | 3876 | 15 |
|
||||
| Rust WASM | 3876 | 13 |
|
||||
|
||||
___* unminified___
|
||||
|
BIN
examples/n-body/build/rust.optimized.wasm
Normal file → Executable file
BIN
examples/n-body/build/rust.optimized.wasm
Normal file → Executable file
Binary file not shown.
@ -1693,9 +1693,9 @@
|
||||
(set_local $19
|
||||
;;@ assembly/index.ts:129:23
|
||||
(block $~lib/math/NativeMath.sqrt|inlined.0 (result f64)
|
||||
;;@ ~lib/math.ts:1031:30
|
||||
;;@ ~lib/math.ts:1016:30
|
||||
(f64.sqrt
|
||||
;;@ ~lib/math.ts:1031:29
|
||||
;;@ ~lib/math.ts:1016:29
|
||||
(get_local $18)
|
||||
)
|
||||
)
|
||||
@ -2157,9 +2157,9 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
;;@ ~lib/math.ts:1031:30
|
||||
;;@ ~lib/math.ts:1016:30
|
||||
(f64.sqrt
|
||||
;;@ ~lib/math.ts:1031:29
|
||||
;;@ ~lib/math.ts:1016:29
|
||||
(get_local $18)
|
||||
)
|
||||
)
|
||||
|
@ -6,7 +6,7 @@
|
||||
use core::intrinsics;
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[panic_implementation]
|
||||
#[panic_handler]
|
||||
#[no_mangle]
|
||||
pub fn panic(_info: &PanicInfo) -> ! {
|
||||
unsafe { intrinsics::abort() }
|
||||
|
Loading…
x
Reference in New Issue
Block a user