Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Object hash vs JSON stringify
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0
Browser:
Firefox 150
Operating system:
Linux
Device Platform:
Desktop
Date tested:
16 days ago
Test name
Executions per second
Object hash
5958.5 Ops/sec
JSON.stringify
1278261.8 Ops/sec
HTML Preparation code:
<script src=" https://cdn.jsdelivr.net/npm/object-hash@3.0.0/dist/object_hash.min.js "></script>
Script Preparation code:
window.data = { prop1: { a: 1, b: 'a' }, prop2: { a: 1, b: 'a' }, prop3: { a: 1, b: 'a' }, prop4: { a: 1, b: 'a' }, prop5: { a: 1, b: 'a' }, };
Tests:
Object hash
objectHash(window.data);
JSON.stringify
JSON.stringify(window.data);