Array from vs String split

Benchmark created on


Setup

const string = 'HelloWorld'

Test runner

Ready to run.

Testing in
TestOps/sec
Array from
const i = Array.from(string)
ready
String split
const i = string.split('')
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.