Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Linux
Desktop
4 months ago
Test name Executions per second
querySelectorAll data attr 831818.2 Ops/sec
querySelectorAll data attr plus node name 660430.9 Ops/sec
querySelectorAll class name 992182.2 Ops/sec
querySelectorAll class name plus node name 936129.2 Ops/sec
querySelectorAll node name plus class name plus data attr 760302.2 Ops/sec
getElementsByClassName 12817867.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelectorAll data attr

  • querySelectorAll data attr plus node name

  • querySelectorAll class name

  • querySelectorAll class name plus node name

  • querySelectorAll node name plus class name plus data attr

  • getElementsByClassName


;