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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Browser:
Chrome 141
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
6 months ago
Test name
Executions per second
Object hash
15794.7 Ops/sec
JSON.stringify
7231547.0 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);