Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
append vs appendChild multiiple
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Browser:
Chrome 123
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
appendChild
389K/s
append
378K/s
View exact numbers
Test name
Executions per second
✓
appendChild
388,645 Ops/sec
append
378,452 Ops/sec
HTML Preparation code:
<div id="container"></div>
Script Preparation code:
var container = document.getElementById("container"); var p1 = document.createElement("p"); var p2 = document.createElement("p"); var p3 = document.createElement("p"); var p4 = document.createElement("p"); var p5 = document.createElement("p");
Tests:
append
container.append(p1,p2,p3,p4,p5);
appendChild
container.appendChild(p1); container.appendChild(p2); container.appendChild(p3); container.appendChild(p4); container.appendChild(p5);