HTML Preparation code:
AخA
 
1
<script src="lodash.js"></script>
Script Preparation code:
 
var elements = [1,2,3,1,2,4,2,3,5,3]
Tests:
  • Lodash

     
    _.uniq(elements)
  • Vanilla JS

     
    elements.filter((value, index, array) => array.indexOf(value) === index)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Lodash
    Vanilla JS

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Lodash 6405804.5 Ops/sec
Vanilla JS 9669295.0 Ops/sec