plain old jsc from OSX:

jsc -e '(function() { var i=1e7; while(i--); })()'  
0,03s user 0,00s system 90% cpu 0,034 total

plain old v8, freshly build from unstable:

./shell -e '(function() { var i=1e7; while(i--); })()'
0,02s user 0,00s system 88% cpu 0,023 total


So now we have fair tests, JS engine vs JS engine without any
node.js boot up code on top of..

But do we really care? Nope, because nobody writes code like this.

On Friday 25 May 2012 at 18:08, Jorge wrote: 
> On May 25, 2012, at 5:50 PM, Jorge wrote:
> > On May 25, 2012, at 5:43 PM, mscdex wrote:
> > > On May 25, 11:38 am, Jorge <[email protected] 
> > > (http://jorgechamorro.com)> wrote:
> > > > On May 25, 2012, at 5:26 PM, Arnout Kazemier wrote:
> > > > 
> > > > > I was referring tohttps://github.com/v8/v8/tree/bleeding_edge 
> > > > > (http://github.com/v8/v8/tree/bleeding_edge)
> > > > 
> > > > Thanks but no, thanks. I'm not going to install that yet... :-P
> > > 
> > > I'd at least try latest v8 3.10.x. I know it had some performance
> > > increases that may be relevant to this particular test (I'm thinking
> > > of the fix that came out of the threads_a_gogo thread).
> > > 
> > 
> > 
> > I'll try that, but IIRC that cocktail made node crash, isn't it?
> 
> With <https://github.com/v8/v8/zipball/3.10>
> 
> $ node -e 'console.log(process.versions)'
> { node: '0.6.6',
> v8: '3.10.8.4',
> ares: '1.7.5-DEV',
> uv: '0.6',
> openssl: '0.9.8l' }
> Segmentation fault // to begin with... :-P
> 
> $ time node -e 'var i=1e7; while(i--);'
> Segmentation fault // cool
> 
> real 0m3.525s
> user 0m3.131s
> sys 0m0.020s
> 
> $ time jsc -e 'var i=1e7; while(i--);'
> 
> real 0m0.050s
> user 0m0.042s
> sys 0m0.007s
> 
> $ time node -e '(function() { var i=1e7; while(i--); })()'
> Segmentation fault // very well
> 
> real 0m0.389s
> user 0m0.042s
> sys 0m0.012s
> 
> $ time jsc -e '(function() { var i=1e7; while(i--); })()'
> 
> real 0m0.044s
> user 0m0.036s
> sys 0m0.007s
> 
> $ time node -e '0'
> Segmentation fault // awesome
> 
> real 0m0.363s
> user 0m0.026s
> sys 0m0.011s
> 
> $ time jsc -e '0'
> 
> real 0m0.012s
> user 0m0.005s
> sys 0m0.006s
> 
> So: to graft a v8 3.10.8.4 into a node 0.6.6 is rather futile...
> -- 
> 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] 
> (mailto:[email protected])
> To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[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