HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/hash-sum@2.0.0/hash-sum.min.js"></script>
2
<script src="https://cdn.jsdelivr.net/npm/object-hash@2.0.3/dist/object_hash.min.js"></script>
Script Preparation code:
x
 
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)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Sum
    Object-hash
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 16 hours ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Linux
View result in a separate tab
Test name Executions per second
Sum 124256.6 Ops/sec
Object-hash 7164.0 Ops/sec
JSON.stringify 2055113.1 Ops/sec