Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
json stringify parse vs spread vs structuredClone
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser:
Chrome 138
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
toString
49.6M/s
JSON.stringify
2.5M/s
structured clone
464K/s
View exact numbers
Test name
Executions per second
✓
toString
49,584,252 Ops/sec
JSON.stringify
2,537,796 Ops/sec
structured clone
463,675 Ops/sec
Script Preparation code:
function makeTestData() { return { name: "Matheus de Sousa Martins", age: 30, phone: "999999999999" }; }
Tests:
toString
let a = {...makeTestData()}
JSON.stringify
JSON.parse(JSON.stringify(makeTestData()));
structured clone
structuredClone(makeTestData());