Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
hash-sum vs object-hash 3.0.0
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Browser:
Chrome 120
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
Sum
26696.6 Ops/sec
Object-hash
1349.6 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@3.0.0/dist/object_hash.min.js"></script>
Script Preparation code:
var context1 = { "uuid": "e0732001-bdec-407e-9c21-8c0b8511f936", "lastMigration": 32, "name": "", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "folders": [], "routes": [ { "uuid": "f8923b08-6d35-4bd8-bdad-28b40c644409", "type": "http", "documentation": "fdg", "method": "get", "endpoint": "dgs", "responses": [ { "uuid": "276d6fd6-94a6-44b5-9f4e-608fc27777a9", "body": "{}gdfafgdg", "latency": 0, "statusCode": 200, "label": "erzzerz", "headers": [], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id", "callbacks": [] } ], "responseMode": null } ], "rootChildren": [ { "type": "route", "uuid": "f8923b08-6d35-4bd8-bdad-28b40c644409" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "d", "keyPath": "", "caPath": "d", "passphrase": "" }, "cors": true, "headers": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "proxyReqHeaders": [ { "key": "", "value": "" } ], "proxyResHeaders": [ { "key": "", "value": "" } ], "data": [], "callbacks": [] } var context2 = { "uuid": "e0732001-bdec-407e-9c21-8c0b8511f936", "lastMigration": 32, "name": "", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "folders": [], "routes": [ { "uuid": "f8923b08-6d35-4bd8-bdad-28b40c644409", "type": "http", "documentation": "fdg", "method": "get", "endpoint": "dgs", "responses": [ { "uuid": "276d6fd6-94a6-44b5-9f4e-608fc27777a9", "body": "{}gdfafgdg", "latency": 0, "statusCode": 200, "label": "erzzerz", "headers": [], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id", "callbacks": [] } ], "responseMode": null } ], "rootChildren": [ { "type": "route", "uuid": "f8923b08-6d35-4bd8-bdad-28b40c644409" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "pfxPath": "", "type": "CERT", "certPath": "d", "keyPath": "", "caPath": "d", "passphrase": "" }, "cors": true, "headers": [ { "key": "Content-Type", "value": "application/json" }, { "key": "", "value": "" } ], "proxyReqHeaders": [ { "key": "", "value": "" } ], "proxyResHeaders": [ { "key": "", "value": "" } ], "data": [], "callbacks": [] }
Tests:
Sum
sum(context1) === sum(context2)
Object-hash
objectHash(context1) === objectHash(context2)