Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
string plus operator
(version: 0)
big string vs chunks plus
Comparing performance of:
small string 120 times vs medium string 60 times vs big string 40 times vs small string 50 times vs small string 10 times
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
let s1 = 'asd'; let s2 = 'asdasd'; let s3 = 'asdasdasd'; let sum = '';
Tests:
small string 120 times
for (let i = 0; i < 120; i++) { sum = sum + s1; }
medium string 60 times
for (let i = 0; i < 60; i++) { sum = sum + s2; }
big string 40 times
for (let i = 0; i < 40; i++) { sum = sum + s3; }
small string 50 times
for (let i = 0; i < 50; i++) { sum = sum + s1; }
small string 10 times
for (let i = 0; i < 10; i++) { sum = sum + s1; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
small string 120 times
medium string 60 times
big string 40 times
small string 50 times
small string 10 times
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!
Comments
Confirm delete:
Do you really want to delete benchmark?