Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Obj.is vs JSON.stringify
(version: 1)
Comparing performance of:
Object.is vs JSON.stringify
Created:
one year ago
by:
Guest
Jump to the latest result
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)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Object.is
JSON.stringify
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
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/OS:
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Object.is
8418483.0 Ops/sec
JSON.stringify
2478928.5 Ops/sec
Related benchmarks:
deep clone JSON
empty object
compare clone way
JSON.stringify vs Destructuring
TestJSONParse
Object Comparaison in JS
Hi there
Join vs toString vs JSON
Object compare (raw or stringify) 2
Comments
Confirm delete:
Do you really want to delete benchmark?