Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Firefox 46
Windows 8.1
Other
8 years ago
Test name Executions per second
:last 77806.9 Ops/sec
:last-child 92674.7 Ops/sec
Javascript 1065029.1 Ops/sec
Javascript2 25002.4 Ops/sec
HTML Preparation code:
Tests:
  • :last

  • :last-child

  • Javascript

  • Javascript2