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 56208.9 Ops/sec
by tag, class and select 57034.9 Ops/sec
by class and select 45278.0 Ops/sec
id -> find by select 68524.9 Ops/sec
class -> find by select 54856.8 Ops/sec
tag and class -> find by select 40415.9 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