Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Init array of strings
Strings.split vs array init
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Browser:
Firefox 126
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Strings.split
5401947.0 Ops/sec
Array init
250117392.0 Ops/sec
Tests:
Strings.split
let a = 'a b c d e f g h i j k l m'.split(' ')
Array init
let a = ['a','b','c','d','e','f','g','h','i','j','k','l','m']