Script Preparation code:
AخA
 
var arr = [1, 2, 3, 4]
Tests:
  • check using length

     
    var d = arr.length ===0
  • check using at() method

     
    var z = arr.at(-1)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    check using length
    check using at() method

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116 on Windows
View result in a separate tab
Test name Executions per second
check using length 13901081.0 Ops/sec
check using at() method 13914380.0 Ops/sec