On May 26, 2012, at 3:36 AM, Matt wrote: > On Fri, May 25, 2012 at 8:00 PM, Jorge <[email protected]> wrote: > On May 26, 2012, at 1:35 AM, Nathan Rajlich wrote: > > > Jorge, what confuses me is that you're pointing out the same bug that you > > discovered in another thread from a while back (when you were claiming that > > your threads beat vanilla node). mraleph quickly discovered and fixed the > > bug, IIRC. > > > > So still, I don't know what point you're trying to make... > > Nathan, in the thread "When threads_a_gogo (*) beats node 2 to 1" a > thread_a_gogo was 2x times faster that node's main thread, but now, here, > what we're seeing is that Apple's jsc is running that über-simple loop ~ 50x > faster than node! Even after applying Egorov's patch, node would still be 25x > slower, and that's worrying (IMO), isn't it? > > No because that code wasn't the same code AT ALL. > > Clearly there's a missing optimisation step in the current node - not a > de-facto 2x speedup, but a way of running code that would miss the optimiser > completely, possibly resulting in pathological cases in a 25x slowdown for > all we know. Clearly that has been fixed in V8, given other people's > benchmarks of "./shell". Have you actually run ./shell from bleeding_edge to > test this against? Other people appear to have and demonstrate that your > pathological case has been fixed.
Perhaps, we'll see. In any case I just wanted to say it so here's this thread for reference and JFYI: 2957/49 == 60x times slower. $ time node -e 'var i=1e7; while(i--);' real 0m2.957s user 0m2.942s sys 0m0.023s $ time jsc -e 'var i=1e7; while(i--);' real 0m0.049s user 0m0.042s sys 0m0.006s -- Jorge. -- 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
