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>
3
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
x
 
var context1 = {
  title: 'fish',
  foo: [{ bar: { baz: true }, arr: [1,2,3,4,5,"pirate"]}],
  position: 1
}
var context2 = {
  title: 'fish',
  foo: [{ bar: { baz: true }, arr: [1,2,3,4,5,"pirate"]}],
  position: 1
}
Tests:
  • Sum

     
    sum(context1) === sum(context2)
  • Object-hash

     
    objectHash(context1) === objectHash(context2)
  • isEqual

     
    _.isEqual(context1, context2)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Sum
    Object-hash
    isEqual

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Sum 87542.3 Ops/sec
Object-hash 8329.5 Ops/sec
isEqual 1099404.5 Ops/sec