<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><blockquote type="cite"><blockquote type="cite">Also yaws should be faster considering it supports sendfile whereas the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">others don't without much additional work beforehand. So regardless of<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the server being used you'd probably just be benchmarking sendfile and<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">not the servers.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Don't suppose anything (sendfile) before benchmarking it Loïc.<br></blockquote><br>I don't suppose anything. Kernel cache is faster than userland cache.</div></blockquote><br></div><div>I don't think so. I'm using "sendfile" (extracted from yaws) <a href="https://github.com/tuncer/sendfile/commits/master/">https://github.com/tuncer/sendfile/commits/master/</a></div><div>(thanks to Steve and Tuncer) in our production app server for while now.</div><div>Except a noticed decrease in CPU usage, it didn't make huge difference compared to "gen_tcp:send" in term of speed.</div><div>But again, that's not fair because our app server is very special.</div><div><br></div><div>I really hope you can fine tune Cowboy (if possible) and let us know how fast can it serve a 100 bytes file in less than a second.</div><div>Thanks Loïc!</div><div><br></div><div>N.B: for the other web servers authors, please take 10mn for the challenge!</div></body></html>