Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
JSON.parse vs JSON.stringify 2
JSON.parse vs JSON.stringify 2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Browser:
Chrome 121
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
JSON.stringify
3.2M/s
JSON.parse
2.2M/s
View exact numbers
Test name
Executions per second
✓
JSON.stringify
3,241,318 Ops/sec
JSON.parse
2,191,095 Ops/sec
Script Preparation code:
var MyObject = { description: 'Creates a deep copy of source, which should be an object or an array.', myNumber: 123456789, myBoolean: true, jayson: { stringify: 'JSON.stringify() method converts a JavaScript value to a JSON string....', parse: 'JSON.parse() method parses a JSON string...' } }; var MyString = JSON.stringify(MyObject)
Tests:
JSON.parse
JSON.parse(MyString)
JSON.stringify
JSON.stringify(MyObject)