Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
String reveese
(version: 1)
Comparing performance of:
Join vs reduceRight
Created:
8 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
function q(a,b){return `${a}${b}`}
Tests:
Join
"a".repeat(1e3).split("").toReversed().join("")
reduceRight
"a".repeat(1e3).split("").reduceRight(q,"")
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Join
reduceRight
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
8 months ago
)
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Mobile Safari/537.36
Browser/OS:
Chrome Mobile 139 on Android
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Join
27849.0 Ops/sec
reduceRight
33711.4 Ops/sec
Related benchmarks:
string concat speed
replace vs split-join
String _.split vs split
reverse words
reverse words v3
Regex vs split/join - space to dash
Regex vs split/join - space to dash 2
Trim All Whitespace
replace vs split/join by Alex
Comments
Confirm delete:
Do you really want to delete benchmark?