Class vs Attribute selector
6 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 |
506047.8 Ops/sec |
Attribute |
34106.0 Ops/sec |
Open this result on MeasureThat.net