Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
hash-sum vs object-hash vs JSON (with array)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Browser:
Chrome 126
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Sum
46990.1 Ops/sec
Object-hash
1821.5 Ops/sec
JSON.stringify
616305.1 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/hash-sum@2.0.0/hash-sum.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/object-hash@2.0.3/dist/object_hash.min.js"></script>
Script Preparation code:
var context1 = { title: 'fish', position: 1, array: [1, 2, 3, [4, 5, 6]], } var context2 = { title: 'fish', position: 1, array: [1, 2, 3, [4, 5, 6]], array2: [{}, {}, {}], }
Tests:
Sum
sum(context1) === sum(context2)
Object-hash
objectHash(context1) === objectHash(context2)
JSON.stringify
JSON.stringify(context1) === JSON.stringify(context2)