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 +=
9.4M/s
3) appendChild
4.6M/s
4) insertAdjacentElement
4.3M/s
2) insertAdjacentHTML
4.1M/s
View exact numbers
Test name Executions per second
1) innerHTML += 9,398,722 Ops/sec
3) appendChild 4,586,580 Ops/sec
4) insertAdjacentElement 4,255,898 Ops/sec
2) insertAdjacentHTML 4,119,606 Ops/sec
Script Preparation code:
Tests: