Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/537.36 (KHTML, like Gecko) Version/8.0 Safari/537.36
Safari 8
Mac OS X 10.10
Desktop
one year ago
Test name Executions per second
matches 6108.6 Ops/sec
closest 4854.0 Ops/sec
classList 9280.5 Ops/sec
matches with more complex selector 4025.7 Ops/sec
HTML Preparation code:
Tests:
  • matches

  • closest

  • classList

  • matches with more complex selector