Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array from vs string split
(version: 0)
Comparing performance of:
Array.from vs string split
Created:
5 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var s1 = "foo"; var s2 = "foo 12312";
Tests:
Array.from
let n1 = Array.from(s1); let n2 = Array.from(s2);
string split
let n1 = s1.split(''); let n2 = s2.split('');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array.from
string split
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one month ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 Edg/148.0.0.0
Browser/OS:
Chrome 148 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Array.from
13331465.0 Ops/sec
string split
27166292.0 Ops/sec
Related benchmarks:
Array split vs string slice
Array from vs string split (with string transform)
Array split vs string substring ISO String
Array split vs string substring22
Comments
Confirm delete:
Do you really want to delete benchmark?