Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
9 months ago
Test name Executions per second
data attribute 27637.3 Ops/sec
class name 55099.4 Ops/sec
get by ID 8471430.0 Ops/sec
query by ID 41898.5 Ops/sec
query by data attribute 34019.5 Ops/sec
HTML Preparation code:
Tests:
  • data attribute

  • class name

  • get by ID

  • query by ID

  • query by data attribute


;