Array allocation with zeros Performance (v93)

Revision 93 of this benchmark created on


Description

Array allocation with zeros Performance

Test runner

Ready to run.

Testing in
TestOps/sec
1
var ary = Uint8Array(1000); 
 
ready
2
var ary = new Array(1000).join('0').split('');
ready
3
var arr = new Array(1000);
for (var i=0; i<=arr.length; i++){arr[i] = 0;}
ready
4
var ary = [].slice.apply(new Uint8Array(new Array(1000));
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.