As other jsperf tests have shown, the difference is mostly due to how you set up the jsperf tests.
Writing useful benchmarks is hard. Micro-benchmarks are often meaningless, sometimes even outright misleading. On Wed, Sep 23, 2015 at 5:52 AM, <[email protected]> wrote: > Some jsperf tests have shown that a map operation for projection is much > more efficient than its equivalent for loop code. > > http://jsperf.com/js-iteration-tests/2 > > We want to investigate why that is so...it could be great if anyone could > point us to how array.map is implemented in v8... > > -deostroll > > -- > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
