Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84
Windows
Desktop
4 years ago
Test name Executions per second
by id and select 189403.9 Ops/sec
by tag, class and select 178034.6 Ops/sec
by class and select 122498.9 Ops/sec
id -> find by select 133873.2 Ops/sec
class -> find by select 154649.6 Ops/sec
tag and class -> find by select 102761.7 Ops/sec
HTML Preparation code:
Tests:
  • by id and select

  • by tag, class and select

  • by class and select

  • id -> find by select

  • class -> find by select

  • tag and class -> find by select