Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136
Linux
Desktop
one year ago
1) innerHTML +=
5.4M/s
3) appendChild
3.0M/s
4) insertAdjacentElement
2.8M/s
2) insertAdjacentHTML
2.6M/s
View exact numbers
Test name Executions per second
1) innerHTML += 5,374,854 Ops/sec
3) appendChild 2,960,690 Ops/sec
4) insertAdjacentElement 2,759,230 Ops/sec
2) insertAdjacentHTML 2,586,544 Ops/sec
Script Preparation code:
Tests: