innerHTML vs insertAdjacentHTMLFastest: insertAdjacentHTML (1.1x faster)
826 ops/sec
738 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| innerHTML | |
| insertAdjacentHTML |
| Test name | Executions per second |
|---|---|
| ✓ insertAdjacentHTML | 861 Ops/sec |
| innerHTML | 742 Ops/sec |