simple-arrays-vs-hashes

JavaScript performance comparison

Test case created

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
arrays
var strArr = '[{"k":"9f8fk8d7ads6cx5vsdf5fds","p1":"p1","p2":"p2"},{"k":"zxcv3dsf17hvml53im231mc","p3":"p3","p4":"p4"},{"k":"ty43qa7c6m1j34hunusdxyu","p5":"p5","p6":"p6"}]';

var obj = JSON.parse(strArr);
pending…
hashes
var strHash = '{"9f8fk8d7ads6cx5vsdf5fds":{"p1":"p1","p2":"p2"},"zxcv3dsf17hvml53im231mc":{"p3":"p3","p4":"p4"},"ty43qa7c6m1j34hunusdxyu":{"p5":"p5","p6":"p6"}}';

var obj = JSON.parse(strHash);
pending…

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

Compare results of other browsers

0 comments

Add a comment