Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
split vs loop
(version: 0)
Comparing performance of:
split vs loop
Created:
7 years ago
by:
Guest
Jump to the latest result
Tests:
split
'abcdefghijklmnopqrstuvwxyz'.split().reverse().join('')
loop
let s = 'abcdefghijklmnopqrstuvwxyz'; let r = ''; for (let i = s.length -1; i<=0; i--) { r+=s[i] }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
split
loop
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!
Related benchmarks:
split vs for loop 2
splice vs slice split array
splice vs slice split array into two
string split vs indexOf vs yield
string split vs indexOf vs yield 2
Comments
Confirm delete:
Do you really want to delete benchmark?