3 ms·
I found the benchmark mentioned in the article - here's the part comparing map: https://funkia.github.io/list/benchmarks#map https://funkia.github.io/list/benc
by lioeters 7y ago
I found the benchmark mentioned in the article - here's the part comparing map:
https://funkia.github.io/list/benchmarks#map https://funkia.github.io/list/benchmarks#map
Apparently, List is ~3x faster than native array.map, with the difference increasing with the number of elements.
I see that random access and iterator are two operations where native array is fastest.