Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
JSON.srtingify vs react-fast-compare vs _.isEqual
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/140.0.0.0 Safari/537.36
Browser:
Chrome 140
Operating system:
Windows
Device Platform:
Desktop
Date tested:
7 months ago
Test name
Executions per second
JSON.stringify
1640543.4 Ops/sec
react-fast-compare
12507918.0 Ops/sec
lodash
285259.3 Ops/sec
HTML Preparation code:
<script src='https://cdn.jsdelivr.net/npm/react-fast-compare@3.2.0/index.min.js'></script>
Script Preparation code:
window.a = { ab: { hello: "user", b: { aaa: 123, b: ["ggg"] }, c: [{ hj: "123", b: { h: "zzz" } }, { ll: "12r" }] }, azz: [1, 2, 3, 5] }; window.b = { ab: { hello: "user", b: { aaa: 123, b: ["ggg"] }, c: [{ hj: "123", b: { h: "zzz" } }, { ll: "12r" }] }, azz: [1, 2, 3, 568] };
Tests:
JSON.stringify
JSON.stringify(window.a) === JSON.stringify(window.b);
react-fast-compare
equal(window.a, window.b)
lodash
_.isEqual(a,b)