Random test1
Date tested:
4 years ago
User agent:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Test name
Executions per second
split
9329225.0 Ops/sec
spread
13434784.0 Ops/sec
Benchmark definition (click to collapse):
Tests:
split
const params = 'random str'; const other = params.split('');
AخA
const
params
=
'random str'
;
const
other
=
params
.
split
(
''
);
spread
const params = 'random str'; const other = [ ...params ];
const
params
=
'random str'
;
const
other
=
[
...
params
];
Open this result on MeasureThat.net