I'm not sure it's reliable to use Date.now() for benchmarking purposes.
On Jan 31, 2013, at 2:01 PM, Dennis H <[email protected]> wrote: > Hi, > > I just tried some JS script on nodejs, which doesn't use any of nodejs APIs: > > var t1 = Date.now(); > var arr = []; > for (var i=0; i < 100000; i++) { > arr[i] = (100 + i) + " bla "; > } > console.log('Time ' + (Date.now()-t1)); > > This turns out to consume 26ms on the 32 bit and 33ms on the 64 bit RHEL > linux, which is 27% slower. > > Any idea for the reason and plans to improve? > > Thanks, > Dennis > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" 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/groups/opt_out. > > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" 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/groups/opt_out.
