appendChild vs append documentFragment vs appendChild w/ requestAnimationFrame vs append documentFragment w/ requestAnimationFrameFastest: appendChild w/ requestAnimationFrame (19.0x faster)
2,914,925 ops/sec
233,564 ops/sec
200,320 ops/sec
153,126 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| appendChild | |
| append documentFragment | |
| appendChild w/ requestAnimationFrame | |
| append documentFragment w/ requestAnimationFrame |
| Test name | Executions per second |
|---|---|
| ✓ appendChild w/ requestAnimationFrame | 3,212,219 Ops/sec |
| append documentFragment w/ requestAnimationFrame | 313,781 Ops/sec |
| appendChild | 200,320 Ops/sec |
| append documentFragment | 153,126 Ops/sec |