HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>
Script Preparation code:
 
window.arr1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
window.arr2 = [9, 8, 7, 6, 5, 4, 3, 2, 1]
Tests:
  • isEqual

     
    _.isEqual(window.arr1, window.arr2)
  • xor

     
    _.xor(window.arr1, window.arr2).length === 0
  • isEqual sort

     
    _.isEqual(_.sortBy(window.arr1), _.sortBy(window.arr2))
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    isEqual
    xor
    isEqual sort

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
isEqual 3209984.5 Ops/sec
xor 2237821.2 Ops/sec
isEqual sort 755141.7 Ops/sec