Ahh, it's the eval and not having closures and global scope.  I'll bet
that's why it's faster, because it's in a clean environment.  Try the same
with new Function() instead of eval locally.

On Thu, Apr 12, 2012 at 12:32 PM, mscdex <[email protected]> wrote:

> On Apr 12, 1:29 pm, mscdex <[email protected]> wrote:
> > https://gist.github.com/2369318
> >
> > Threads_a_gogo JS thread ->  3039 (ms)  298607040
> > Node's main JS thread    ->  4677 (ms)  298607040
> > Ratio: 1.54 times faster than main JS thread
> > New, separate VM ->  3065 (ms)  298607040
> > Ratio: 1.01 times faster than new VM
>
> Also, occasionally the new VM will be faster than the threads_a_gogo
> execution.
>
> --
> 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
>

-- 
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

Reply via email to