Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Chrome 49
Mac OS X 10.8.5
Desktop
2 years ago
Test name Executions per second
querySelector 815597.5 Ops/sec
getElementsByClassName 1432148.1 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName