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:
5 months ago
by:
Guest
Jump 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:
5 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
Test name
Executions per second
join
24228416.0 Ops/sec
my join
18046214.0 Ops/sec
Related benchmarks:
Concat, Slice, Join
Native JS: reduce vs join
Join vs Join2
Join vs Join2 part 2
Array<string>.join vs Array<string>.reduce
array join("-") vs toString() [js]
Split vs join
Reduce and join in javascript
string concat + join vs unshift + join
Comments
Confirm delete:
Do you really want to delete benchmark?