On May 25, 2012, at 1:18 PM, Fedor Indutny wrote
>> On Fri, May 25, 2012 at 3:17 PM, Jorge <[email protected]> wrote:
>>> On May 25, 2012, at 12:09 PM, Bradley Meck wrote:
>>>
>>> I think you should be comparing with d8 more than node ... node pulls in a
>>> lot of stuff that jsc would never dream of.
>>
>> Right, but, what's with the 'i=1e7; while(i--);' ?
>
> Try this:
>
> time node -e '(function() { var i=1e7; while(i--); })()'
>
> The thing is that jsc is somehow optimizing access to the global variables.
Much better:
$ time node -e '(function() { var i=1e7; while(i--); })()'
real 0m0.092s
user 0m0.077s
sys 0m0.012s
$ time jsc -e '(function() { var i=1e7; while(i--); })()'
real 0m0.043s
user 0m0.036s
sys 0m0.006s
Cheers,
--
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