I don't think that's it. The `deferred.resolve` is to complete the async test of jsperf.
A more realistic test is to return a promise from a function and use setTimeout to resolve. On Tuesday, April 30, 2013 9:53:23 AM UTC-7, Fedor Indutny wrote: > > Surely, I see. They're using promises for benchmarking everything and, > apparently, promises works best with promises. > > Cheers, > Fedor. > > > On Tue, Apr 30, 2013 at 8:51 PM, mgutz <[email protected]<javascript:> > > wrote: > >> Does anybody see anything wrong with the logic in these tests? >> >> http://jsperf.com/promise-comparisons/13 >> >> I expected callbacks to be faster than promises. >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" 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.
