Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
hash-sum vs object-hash vs object.entries
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/128.0.0.0 Safari/537.36
Browser:
Chrome 128
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Sum
433706.0 Ops/sec
Object-hash
24264.0 Ops/sec
Object.entries
1060287.8 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 } var context2 = { title: 'fish', position: 1 }
Tests:
Sum
sum(context1) === sum(context2)
Object-hash
objectHash(context1) === objectHash(context2)
Object.entries
Object.entries(context1).sort().toString() === Object.entries(context2).sort().toString()