Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
object-hash md5 vs JSON.stringify33
(version: 1)
Comparing performance of:
JSON.stringify vs md5
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 = { 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:
JSON.stringify
JSON.stringify(context1) === JSON.stringify(context2)
md5
objectHash(context1, { algorithm: "sha1", encoding: "base64", unorderedArrays: true, unorderedSets: true, unorderedObjects: true, }) === objectHash(context2, { algorithm: "sha1", encoding: "base64", unorderedArrays: true, unorderedSets: true, unorderedObjects: true, })
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
JSON.stringify
md5
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
5 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0
Browser/OS:
Firefox 144 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
JSON.stringify
1667441.1 Ops/sec
md5
7189.1 Ops/sec
Related benchmarks:
hash-sum vs object-hash vs JSON.stringify
hash-sum vs object-hash vs JSON
hash-sum vs object-hash vs JSON (with array)
hash-sum vs object-hash vs JSON 2221111111
hash-sum vs object-hash vs JSON (with array) 2
hash-sum@2.0.0 vs object-hash@3.0.0 vs jsum@2.0.0-alpha.4
object-hash md5 vs JSON.stringify
hash-sum vs object-hash vs _.isEqual
latest hash-sum vs object-hash vs JSON (with array)
Comments
Confirm delete:
Do you really want to delete benchmark?