Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
div vs svg
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0
Browser:
Firefox 146
Operating system:
Linux
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
div set text
2729846.5 Ops/sec
svg text
1452913664.0 Ops/sec
Script Preparation code:
var div = document.createElement("div"); const svg1 = document.createElementNS("http://www.w3.org/2000/svg", "svg"); // set width and height svg1.setAttribute("width", "100"); svg1.setAttribute("height", "100"); var svgText = document.createElementNS("http://www.w3.org/2000/svg", "text");
Tests:
div set text
div.innerText = "Testing, 1 2 3"
svg text
svgText.innerText = "Testing, 1 2 3"