Test case name | Result |
---|---|
getAttribute only | |
ternary typeof check to determine getAttribute or className |
Test name | Executions per second |
---|---|
getAttribute only | 27822.0 Ops/sec |
ternary typeof check to determine getAttribute or className | 16031.2 Ops/sec |