insertBefore vs append vs prependFastest: append (2.4x faster)
8,410 ops/sec
8,389 ops/sec
3,493 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| insertBefore | |
| append | |
| prepend |
| Test name | Executions per second |
|---|---|
| ✓ insertBefore | 4,124 Ops/sec |
| prepend | 3,345 Ops/sec |
| append | 1,898 Ops/sec |