On May 26, 8:54 pm, Jorge <[email protected]> wrote:
> On May 26, 2012, at 6:01 PM, Oliver Leics wrote:
>
>
>
>
>
>
>
>
>
> > On Sat, May 26, 2012 at 5:26 PM, Bert Belder <[email protected]> wrote:
> >> On May 25, 11:21 pm, Oliver Leics <[email protected]> wrote:
> >>> On Fri, May 25, 2012 at 9:50 PM, Jorge <[email protected]> wrote:
> >>>> It does not take 3 seconds to start it up.
>
> >>> Please explain:
>
> >>>   $ time node -e 'i=1e7; while(i--);'
>
> >> Startup time should be in the order of 10s of milliseconds, so that's
> >> not it. However, there's a simple explanation for it.
> >> First of all, notice that `node -e` uses `eval()` (see
> >> [...]
>
> > Thank you.
>
> > @Jorge
>
> > Please post the numbers for
>
> >  echo "var i=1e7;while(i--);" > test.js && time node test.js
>
> > and
>
> >  echo "var i=1e7;while(i--);" > test.js && time jsc test.js
>
> $ echo "var i= 1e7; while(i--);" > test.js && time node test.js
>
> real    0m0.074s
> user    0m0.051s
> sys     0m0.011s
>
> $ echo "var i= 1e7; while(i--);" > test.js && time jsc test.js
>
> real    0m0.047s
> user    0m0.041s
> sys     0m0.005s
> --
> Jorge.

Well, here the startup time *does* matter. In fact, I think that
startup time is the only cause of the observed time difference.

- Bert

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