Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test 123 helloworld
(version: 0)
Comparing performance of:
addition + tostring vs concat vs concat + toString vs addition
Created:
5 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id='helloworld'></div>
Script Preparation code:
var helloworld = document.getElementById("helloworld");
Tests:
addition + tostring
for(i=0;i<100;i++){ console.log("test123" + helloworld.toString()) }
concat
for(i=0;i<100;i++){ console.log("test123".concat(helloworld)) }
concat + toString
for(i=0;i<100;i++){ console.log("test123".concat(helloworld.toString())) }
addition
for(i=0;i<100;i++){ console.log("test123" + helloworld) }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
addition + tostring
concat
concat + toString
addition
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Fastest Way to Get Element By ID
Try/catch performance
getElementById vs querySelector (2023.05)
innerHTML vs textContent vs innerText
textContent vs innerHTML vs innerText
Comments
Confirm delete:
Do you really want to delete benchmark?