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:151.0) Gecko/20100101 Firefox/151.0
Browser:
Firefox 151
Operating system:
Linux
Device Platform:
Desktop
Date tested:
12 days ago
Test name
Executions per second
createElement
35532.9 Ops/sec
innerHTML
39026.4 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>";