Test name | Executions per second |
---|---|
lodash | 1831735.2 Ops/sec |
es6 | 3502437.5 Ops/sec |
<script src="
https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js
"></script>
function double(n) {
return n*2;
}
var data = [Array(20)].map((v, idx) => idx);
_.map(double, data);
data.map(double);