mirror of https://github.com/boa-dev/boa.git
Browse Source
* Added CLEAN_JS and MINI_JS benches These benches are arbitrary code which is subject to change, functionally the programs are identical. * Forgot semicolon * Adding parsing benchmarks for CleanJS & MiniJS Added identical benchmark cases for parser. * Migrating Clean and Mini benchmarks to new format Adding js scripts in bench_scripts & moving exec, full and parser benchmarks to new include_str!() macro.pull/653/head
neeldug
4 years ago
committed by
GitHub
5 changed files with 90 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||||
|
!function () { |
||||||
|
var M = new Array(); |
||||||
|
for (i = 0; i < 100; i++) { |
||||||
|
M.push(Math.floor(Math.random() * 100)); |
||||||
|
} |
||||||
|
var test = []; |
||||||
|
for (i = 0; i < 100; i++) { |
||||||
|
if (M[i] > 50) { |
||||||
|
test.push(M[i]); |
||||||
|
} |
||||||
|
} |
||||||
|
test.forEach(elem => { |
||||||
|
0 |
||||||
|
}); |
||||||
|
}(); |
@ -0,0 +1 @@ |
|||||||
|
!function(){var r=new Array();for(i=0;i<100;i++)r.push(Math.floor(100*Math.random()));var a=[];for(i=0;i<100;i++)r[i]>50&&a.push(r[i]);a.forEach(i=>{0})}(); |
Loading…
Reference in new issue