Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Linux
Desktop
one year ago
1) innerHTML +=
9.1M/s
3) appendChild
3.0M/s
2) insertAdjacentHTML
3.0M/s
4) insertAdjacentElement
2.7M/s
View exact numbers
Test name Executions per second
1) innerHTML += 9,066,462 Ops/sec
3) appendChild 3,025,098 Ops/sec
2) insertAdjacentHTML 2,963,284 Ops/sec
4) insertAdjacentElement 2,747,282 Ops/sec
Script Preparation code:
Tests: