Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
2 years ago
Benchmark.js
removeChild backwards
10.0M/s
removeChild
9.9M/s
innerHTML
8.4M/s
innerText
6.1M/s
View exact numbers
Test name Executions per second
removeChild backwards 10,041,044 Ops/sec
removeChild 9,939,242 Ops/sec
innerHTML 8,400,242 Ops/sec
innerText 6,126,684 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: