Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
innerHTML vs createElement
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Browser:
Firefox 128
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
createElement
159133.6 Ops/sec
innerHTML
64140.8 Ops/sec
Tests:
createElement
document.body.append( document.createElement("p"), document.createElement("p"), document.createElement("p"), document.createElement("p"), document.createElement("p") );
innerHTML
document.body.innerHTML = "<p>1</p><p>2</p><p>3</p><p>4</p><p>5</p>";