HTML Preparation code:
Tests:
  • .first()

  • :first

  • .filter(:first)

  • .eq(0)

  • $(.get(0))

  • $([0])

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: 6 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Firefox 59 on Windows
View result in a separate tab
Test name Executions per second
.first() 29797.2 Ops/sec
:first 20420.8 Ops/sec
.filter(:first) 21257.8 Ops/sec
.eq(0) 9525.7 Ops/sec
$(.get(0)) 32723.3 Ops/sec
$([0]) 32753.0 Ops/sec


;