Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Obj.is vs JSON.stringify
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/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Object.is
8418483.0 Ops/sec
JSON.stringify
2478928.5 Ops/sec
Script Preparation code:
const obj1 = { hello: "test", num: 10, obj: { "new": true }, arr: [1, 0] } const obj2 = { hello: "test", num: 10, obj: { "new": false }, arr: [1, 2, 6] }
Tests:
Object.is
Object.is(obj1, obj2)
JSON.stringify
JSON.stringify(obj1) === JSON.stringify(obj2)