Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Chrome 97
Windows
Desktop
2 years ago
Test name Executions per second
JSON.parse combined 40965.1 Ops/sec
JSON.parse invalid 39802.7 Ops/sec
JSON.parse valid 1019044.0 Ops/sec
fast-json-parse combined 32928.7 Ops/sec
fast-json-parse invalid 36088.7 Ops/sec
fast-json-parse valid 433727.1 Ops/sec
Script Preparation code:
Tests:
  • JSON.parse combined

  • JSON.parse invalid

  • JSON.parse valid

  • fast-json-parse combined

  • fast-json-parse invalid

  • fast-json-parse valid