Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4
Safari 9
Mac OS X 10.11.3
Other
8 years ago
Test name Executions per second
querySelector 872789.7 Ops/sec
getElementsByClassName 4348369.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName