setAttribute vs direct vs []Fastest: [] (325.3x faster)
96,015 ops/sec
95,086 ops/sec
295 ops/sec
Fastest: direct (466.4x faster)
262,316 ops/sec
259,661 ops/sec
562 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| setAttribute | |
| direct | |
| [] |
| Test name | Executions per second |
|---|---|
| ✓ direct | 69,290 Ops/sec |
| [] | 51,443 Ops/sec |
| setAttribute | 196 Ops/sec |