ArrayParse (v4)

Revision 4 of this benchmark created on


Setup

for(var arr=[],i=0;i<30000;i++){arr[i]=i+1};
arr=JSON.stringify(arr)

Test runner

Ready to run.

Testing in
TestOps/sec
parse1
var foo=JSON.parse(arr)
var colors=foo.map(x => x.toString(16).padStart(6, '0'))
var min=Math.min(foo)
var max=Math.max(foo)
ready
parse2
var foo=JSON.parse(arr)
var colors=foo.map(x => x.toString(16).padStart(6, '0'))
var min=Math.min(foo)
var max=Math.max(foo)
ready

Revisions

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