Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36
Chrome 57
Fedora
Other
7 years ago
Test name Executions per second
.first() 671.8 Ops/sec
:first 669.2 Ops/sec
.filter(:first) 680.2 Ops/sec
.eq(0) 666.1 Ops/sec
$(.get(0)) 669.4 Ops/sec
$([0]) 640.6 Ops/sec
HTML Preparation code:
Tests:
  • .first()

  • :first

  • .filter(:first)

  • .eq(0)

  • $(.get(0))

  • $([0])


;