btw - with some tweaks i am able to get 47k rps from nginx on 85% of a
single core (rest is IO wait). i am serving the 0k file from /tmp
which is shared memory. have updated the nginx.conf in the gist. matt
- you are way ahead at the moment!! ;)

On Feb 15, 12:56 am, billywhizz <[email protected]> wrote:
> heh. proves your point. for now. i'm not dissing nginx btw - i love
> nginx. i also like lighttpd and gatling a lot too, but there are many
> scenarios where you may not want to serve static files from a separate
> server listening on a separate port. node.js is also easily
> programmable, none of the other static file servers are. anyway, i'll
> keep posting up benchmarks so we have something real to argue about
> and have a goal to aim at in terms of optimization.
>
> let me know if there are any further nginx optimisations that can be
> done. as far as i can see this is a minimal nginx configuration with
> no extra modules but there are probably tweaks that can be made to it.
> i'll download an build a later version of nginx when i get a chance.
>
> On Feb 15, 12:42 am, Matt <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Tue, Feb 14, 2012 at 7:00 PM, billywhizz <[email protected]> wrote:
> > > Matt, there are all sorts of optimisations available. if you really
> > > want top performance, then you could write a c++ module that does
> > > static file serving and can be easily plugged into a node.js http
> > > server.
>
> > Yes, but why would you do that, when there's perfectly good open source
> > code (nginx) to do it already?
>
> > > it would be able to spend most of it's time in c++ land
> > > serving static files so there is no reason it could not be as fast as
> > > nginx. also, nginx is only optimised once - at compile time. in v8,
> > > the JIT compiler has the opportunity to optimise on the fly as the
> > > load on the server changes. this is a big advantage over something
> > > like nginx and it wouldn't surprise me at all to see a node.js
> > > solution match or out perform nginx at static file serving in the near
> > > future.
>
> > It's *very* rare for a JIT to do better than compiled C, except on very
> > synthetic hard looping problems - HTTP serving really doesn't fit into that.
>
> > > i've put a very basic benchmark up here:
> > >https://gist.github.com/1831760
>
> > Thank you. Kind of proves my point. Nginx serves more data, from the
> > filesystem, faster, is checking for changes to the file, isn't doing
> > sendfile(), etc. At least you turned logging off :)
>
> > But I really appreciate seeing real numbers.
>
> > Matt.

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