Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Windows
Desktop
4 years ago
Test name Executions per second
by id and select 83750.1 Ops/sec
by tag, class and select 102920.7 Ops/sec
by class and select 98789.7 Ops/sec
id -> find by select 156518.6 Ops/sec
class -> find by select 85750.0 Ops/sec
tag and class -> find by select 55900.1 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