Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
Safari 10
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
querySelectorAll 169156.0 Ops/sec
getElementsByClassName 5089105.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelectorAll

  • getElementsByClassName