Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Linux
Desktop
one year ago
1) innerHTML +=
17.9M/s
3) appendChild
10.9M/s
4) insertAdjacentElement
9.9M/s
2) insertAdjacentHTML
6.4M/s
View exact numbers
Test name Executions per second
1) innerHTML += 17,854,496 Ops/sec
3) appendChild 10,948,013 Ops/sec
4) insertAdjacentElement 9,859,390 Ops/sec
2) insertAdjacentHTML 6,435,330 Ops/sec
Script Preparation code:
Tests: