JSON parse speed (v11)

Revision 11 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
JSON parsed
// async test
var v = JSON.parse('[1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0]');
ready
String key
// async test
var v = JSON.parse('{"aoooo1":1,"boooo1":2,"coooo1":3,"doooo1":4,"eoooo1":5,"aoooo2":1,"boooo2":2,"coooo2":3,"doooo2":4,"eoooo2":5,"aoooo3":1,"boooo3":2,"coooo3":3,"doooo3":4,"eoooo3":5,"aoooo4":1,"boooo4":2,"coooo4":3,"doooo4":4,"eoooo4":5,"aoooo5":1,"boooo5":2,"coooo5":3,"doooo5":4,"eoooo5":5,"aoooo6":1,"boooo6":2,"coooo6":3,"doooo6":4,"eoooo6":5,"aoooo7":1,"boooo7":2,"coooo7":3,"doooo7":4,"eoooo7":5,"aoooo8":1,"boooo8":2,"coooo8":3,"doooo8":4,"eoooo8":5,"aoooo9":1,"boooo9":2,"coooo9":3,"doooo9":4,"eoooo9":5,"aoooo0":1,"boooo0":2,"coooo0":3,"doooo0":4,"eoooo0":5}');
ready
Integer key
// async test
var v = JSON.parse('{"1":1,"2":2,"3":3,"4":4,"5":5,"6":1,"7":2,"8":3,"9":4,"10":5,"11":1,"12":2,"13":3,"14":4,"15":5,"16":1,"17":2,"18":3,"19":4,"20":5,"21":1,"22":2,"23":3,"24":4,"25":5,"26":1,"27":2,"28":3,"29":4,"30":5,"31":1,"32":2,"33":3,"34":4,"35":5,"36":1,"37":2,"38":3,"39":4,"40":5,"41":1,"42":2,"43":3,"44":4,"45":5,"46":1,"47":2,"48":3,"49":4,"50":5}');
ready
strings
// async test
var v = JSON.parse('["1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6","7","8","9","0"]');
ready

Revisions

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