Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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:
9 months ago
Benchmark engine:
Benchmark.js
svg text
1452.9M/s
div set text
2.7M/s
View exact numbers
Test name
Executions per second
✓
svg text
1,452,913,664 Ops/sec
div set text
2,729,846 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"