Class vs Attribute selector 2

5 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36
Test name Executions per second
Class selector 19201.5 Ops/sec
Attribute selector 10551.4 Ops/sec
HTML Preparation code:
Tests:
  • Class selector

  • Attribute selector

Open this result on MeasureThat.net