Update Rust n-body build (#294)

This commit is contained in:
Max Graey 2018-10-26 19:25:09 +03:00 committed by Daniel Wirtz
parent 376afd45fc
commit afb8fe7762
4 changed files with 9 additions and 9 deletions

View File

@ -31,9 +31,9 @@ Benchmark
***Environment:*** ***Environment:***
- MacBook Pro (Retina, 15-inch, Late 2013) - MacBook Pro (Retina, 15-inch, Late 2013)
- macOS 10.13.5 - macOS 10.14
- node.js v10.6.0 - node.js v10.11.0
- rustc 1.29.0-nightly (254f8796b 2018-07-13) - rustc 1.31.0-nightly (4bd4e4130 2018-10-25)
***Results:*** ***Results:***
@ -42,6 +42,6 @@ Benchmark
| **AssemblyScript WASM** | **3167** | **2** | | **AssemblyScript WASM** | **3167** | **2** |
| AssemblyScript ASMJS | 3633 | 21* | | AssemblyScript ASMJS | 3633 | 21* |
| JavaScript | 2628 | 5* | | JavaScript | 2628 | 5* |
| Rust WASM | 3876 | 15 | | Rust WASM | 3876 | 13 |
___* unminified___ ___* unminified___

BIN
examples/n-body/build/rust.optimized.wasm Normal file → Executable file

Binary file not shown.

View File

@ -1693,9 +1693,9 @@
(set_local $19 (set_local $19
;;@ assembly/index.ts:129:23 ;;@ assembly/index.ts:129:23
(block $~lib/math/NativeMath.sqrt|inlined.0 (result f64) (block $~lib/math/NativeMath.sqrt|inlined.0 (result f64)
;;@ ~lib/math.ts:1031:30 ;;@ ~lib/math.ts:1016:30
(f64.sqrt (f64.sqrt
;;@ ~lib/math.ts:1031:29 ;;@ ~lib/math.ts:1016:29
(get_local $18) (get_local $18)
) )
) )
@ -2157,9 +2157,9 @@
) )
) )
) )
;;@ ~lib/math.ts:1031:30 ;;@ ~lib/math.ts:1016:30
(f64.sqrt (f64.sqrt
;;@ ~lib/math.ts:1031:29 ;;@ ~lib/math.ts:1016:29
(get_local $18) (get_local $18)
) )
) )

View File

@ -6,7 +6,7 @@
use core::intrinsics; use core::intrinsics;
use core::panic::PanicInfo; use core::panic::PanicInfo;
#[panic_implementation] #[panic_handler]
#[no_mangle] #[no_mangle]
pub fn panic(_info: &PanicInfo) -> ! { pub fn panic(_info: &PanicInfo) -> ! {
unsafe { intrinsics::abort() } unsafe { intrinsics::abort() }