Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
hash-sum vs object-hash o
(version: 1)
Comparing performance of:
Sum vs Object-hash
Created:
one year ago
by:
Guest
Jump to the latest result
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 = { "userId": 12345, "userProfile": { "name": "John Doe", "address": { "street": "123 Main St", "city": "Anytown", "state": "CA", "zip": "12345" } }, "preferences": { "language": "en", "notifications": { "email": true, "sms": false } }, "isActive": true } var context2 = { "userId": 12346, "userProfile": { "name": "Jane Doe", "address": { "street": "123 Main St", "city": "Anytown", "state": "CA", "zip": "12345" } }, "preferences": { "language": "en", "notifications": { "email": true, "sms": false } }, "isActive": true }
Tests:
Sum
sum(context1) === sum(context2)
Object-hash
objectHash(context1) === objectHash(context2)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Sum
Object-hash
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Browser/OS:
Firefox 132 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Sum
98917.8 Ops/sec
Object-hash
3187.4 Ops/sec
Related benchmarks:
cleanJson + delete lock [old vs new]
delete vs destructuring
hash-sum vs object-hashxxxxxx
lodash clonedeep vs json.parse(stringify())
Access first key using for-in vs object.keys()
Access first key using for-in vs object.keys() 2
Spread vs Object.assign vs Object.keys with forEach deep clone
Lodash cloneDeep VS spread operator_complex object
Lodash cloneDeep VS spread operator vs structured clone on complex object
Comments
Confirm delete:
Do you really want to delete benchmark?