Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
str split vs spread vs Array.from
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
split
63.6M/s
spread
44.4M/s
array.from
43.5M/s
View exact numbers
Test name
Executions per second
✓
split
63,589,000 Ops/sec
spread
44,361,132 Ops/sec
array.from
43,460,540 Ops/sec
Script Preparation code:
var str = "hello";
Tests:
split
var other = str.split('');
spread
var other = [...str];
array.from
var other = Array.from(str)