On Sun, May 20, 2012 at 5:55 PM, rejetto <[email protected]> wrote: > dear all, > i'm testing the speed a node http server can get on a single stream. > > For my tests i made a dead simple piece of software serving a big > fileĀ http://pastebin.com/GU3XEf3k > configure the first line to point to the big file. > On the client side i'm using this command: > wget -O nul http://localhost/ > the "nul" is valid for windows, while should be changed to /dev/null on > linux. > > On my laptop i'm getting roughly 150MB/s on a single stream. > Apache sports a 250MB/s with same conditions. > I'm not sure if and how this value will affect real performances, but being > my project a file server used also in LAN, it could. > > Is there anything i can do to optimize this? > I'll be glad also to be pointed to documents, because i didn't find a good > one. > > Thank you very much
Node is not optimized for serving static files. That will change but for now, you're better off using httpd or nginx to serve your static resources. -- 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
