HTML Preparation code:
Tests:
  • $.inArray

  • Array.prototype.includes

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    $.inArray
    Array.prototype.includes

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.54 Safari/537.36
Chrome 70 on Mac OS X 10.14.0
View result in a separate tab
Test name Executions per second
$.inArray 5147650.0 Ops/sec
Array.prototype.includes 925692400.0 Ops/sec