Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
strng reversing
(version: 1)
Comparing performance of:
join vs my join
Created:
8 months ago
by:
Guest
Go to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
function join(arr) { return arr.reduce((a, b) => a+b, '') }
Tests:
join
[1,2,3,4,5].join('')
my join
join([1,2,3,4,5])
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
join
my join
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
8 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Browser/OS:
Firefox 145 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
join
24.2M/s
my join
18.0M/s
View exact numbers
Test name
Executions per second
✓
join
24,228,416 Ops/sec
my join
18,046,214 Ops/sec
Related benchmarks
Array<string>.join vs Array<string>.reduce
Reduce and join in javascript
string concat + join vs unshift + join
Comments
Confirm delete:
Do you really want to delete benchmark?