HTML Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .first()
    :first
    .filter(:first)
    .eq(0)
    $(.get(0))
    $([0])

    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; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139 on Windows
View result in a separate tab
.first()
521K/s
$([0])
473K/s
.eq(0)
444K/s
$(.get(0))
386K/s
.filter(:first)
237K/s
:first
200K/s
View exact numbers
Test name Executions per second
.first() 521,019 Ops/sec
$([0]) 472,512 Ops/sec
.eq(0) 443,746 Ops/sec
$(.get(0)) 385,634 Ops/sec
.filter(:first) 237,291 Ops/sec
:first 200,431 Ops/sec