Test case name | Result |
---|---|
querySelector | |
classList.contains | |
querySelector after more HTML elements | |
classList.contains after more HTML elements |
Test name | Executions per second |
---|---|
querySelector | 1568046.0 Ops/sec |
classList.contains | 4936618.0 Ops/sec |
querySelector after more HTML elements | 875125.3 Ops/sec |
classList.contains after more HTML elements | 4812829.5 Ops/sec |