Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Chrome 60
Windows 8.1
Other
7 years ago
Test name Executions per second
parseTestObject(stringObject); 575900.9 Ops/sec
parseTestObject(bigStringObject); 586094.2 Ops/sec
JSON.parse(bigJsonObject); 148974.1 Ops/sec
JSON.parse(jsonObject); 230819.7 Ops/sec
parseTestObjectUseArray(bigStringObject); 465601.8 Ops/sec
parseTestObjectUseArray(stringObject); 449861.3 Ops/sec
stringObject to vars 338437.2 Ops/sec
bigStringObject to vars 341086.3 Ops/sec
Script Preparation code:
Tests:
  • parseTestObject(stringObject);

  • parseTestObject(bigStringObject);

  • JSON.parse(bigJsonObject);

  • JSON.parse(jsonObject);

  • parseTestObjectUseArray(bigStringObject);

  • parseTestObjectUseArray(stringObject);

  • stringObject to vars

  • bigStringObject to vars


;