Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
str split vs spread
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_7_11 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/137.0.7151.79 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 137
Operating system:
iOS 16.7.11
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
spread
24.1M/s
split
11.5M/s
View exact numbers
Test name
Executions per second
✓
spread
24,074,454 Ops/sec
split
11,534,712 Ops/sec
Script Preparation code:
var str = "hello";
Tests:
split
var other = str.split('');
spread
var other = [...str];