setAttribute - no if vs setAttribute - with if vs toggleAttribute - no if vs toggleAttribute - with if| Test case name | Result |
|---|---|
| setAttribute - no if | |
| setAttribute - with if | |
| toggleAttribute - no if | |
| toggleAttribute - with if |
| Test name | Executions per second |
|---|---|
| ✓ setAttribute - with if | 14,457 Ops/sec |
| toggleAttribute - with if | 14,446 Ops/sec |
| toggleAttribute - no if | 10,511 Ops/sec |
| setAttribute - no if | 4,001 Ops/sec |