Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Concat vs Hardcode
(version: 0)
Comparing performance of:
concat vs hardcode
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id="target"></div>
Script Preparation code:
var goose = 'goose'; var target = document.getElementById('target');
Tests:
concat
target.textContent = goose + 'cat' target.textContent = goose + 'duck' target.textContent = goose + 'tiger' target.textContent = goose + 'owl' target.textContent = goose + 'dog' target.textContent = goose + 'rat' target.textContent = goose + 'cock'
hardcode
target.textContent = 'goosecat' target.textContent = 'gooseduck' target.textContent = 'goosetiger' target.textContent = 'gooseowl' target.textContent = 'goosedog' target.textContent = 'gooserat' target.textContent = 'goosecock'
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
concat
hardcode
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser/OS:
Chrome 130 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
concat
51245.9 Ops/sec
hardcode
56128.7 Ops/sec
Related benchmarks:
Dev test1
Dev test2
Spinal Tap
string concat test
test 123 helloworld
Test read speed
test123v7
Comments
Confirm delete:
Do you really want to delete benchmark?