Run details:
Mozilla/5.0 (Windows NT 10.0.14393; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2953.0 Safari/537.36
Chrome 57
Windows
Other
8 years ago
Test name Executions per second
getElementsByClassName 363870.4 Ops/sec
querySelectorAll 5724.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementsByClassName

  • querySelectorAll