Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Chrome 55
Windows
Other
7 years ago
Test name Executions per second
:focusable").first() 123.7 Ops/sec
:focusable")[0] 123.7 Ops/sec
:focusable").filter(":first") 123.7 Ops/sec
:focusable:first 117.0 Ops/sec
firstFocusableOfList 1499.4 Ops/sec
firstFocusableOfList2 350.8 Ops/sec
findFistElementFocusable 1701.1 Ops/sec
firstFocusableElement 2918.5 Ops/sec
findLastElementFocusable 1149.7 Ops/sec
lastFocusableElement 1182.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • :focusable").first()

  • :focusable")[0]

  • :focusable").filter(":first")

  • :focusable:first

  • firstFocusableOfList

  • firstFocusableOfList2

  • findFistElementFocusable

  • firstFocusableElement

  • findLastElementFocusable

  • lastFocusableElement


;