File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,16 @@ Benchmark
39
39
*** Environment:***
40
40
41
41
- MacBook Pro (15-inch, 2019)
42
- - macOS 12.4 .0
43
- - node.js v18.4 .0
44
- - rustc 1.42 .0-nightly (3a3f4a7cb 2019-12-28 )
42
+ - macOS 12.5 .0
43
+ - node.js v18.7 .0
44
+ - rustc 1.64 .0-nightly (0f4bcadb4 2022-07-30 )
45
45
46
46
*** Results:***
47
47
48
48
| Target | Time, *** ms*** | Size, *** KB*** |
49
49
| -------------------------| -----------------| ----------------|
50
- | ** AssemblyScript WASM** | ** 1599 ** | ** 1.8** |
51
- | JavaScript | 11608 | 5* |
52
- | Rust WASM | 1631 | 2 |
50
+ | ** AssemblyScript WASM** | ** 1606 ** | ** 1.8** |
51
+ | JavaScript | 11640 | 5* |
52
+ | Rust WASM | 1611 | 2 |
53
53
54
54
___ * unminified___
Original file line number Diff line number Diff line change 1
1
{
2
2
"options" : {
3
3
"runtime" : " stub" ,
4
- "importMemory" : true ,
4
+ "initialMemory" : 17 ,
5
+ "noExportMemory" : true ,
5
6
"sourceMap" : true
6
7
},
7
8
"targets" : {
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ const compiled = new WebAssembly.Module(
7
7
8
8
const imports = {
9
9
env : {
10
- memory : new WebAssembly . Memory ( { initial : 10 } ) ,
11
10
abort : ( _ , line , column ) => {
12
11
throw Error ( "abort called at " + line + ":" + column ) ;
13
12
}
Original file line number Diff line number Diff line change 10
10
"rsbuild" : " cd rust && RUSTFLAGS='-C link-arg=-s' cargo +nightly build --release" ,
11
11
"build" : " npm run asbuild && npm run tsbuild && npm run rsbuild" ,
12
12
"start" : " npx serve" ,
13
- "test" : " node --no-wasm- bounds-checks --no-wasm- stack-checks --expose-gc tests"
13
+ "test" : " node --nowasm- bounds-checks --nowasm- stack-checks --noliftoff --expose-gc tests"
14
14
},
15
15
"devDependencies" : {
16
16
"assemblyscript" : " latest" ,
You can’t perform that action at this time.
0 commit comments