- The sendfile tests at the end actually didn't use sendfile, so expect much greater performance there.
- All the Caddy tests had metrics enabled, which are known[2] to be quite slow currently. Nginx does not emit metrics in its configuration, so in that sense the tests are a bit uneven. From my own tests, when I remove metrics code, Caddy is 10-20% faster. (We're working on addressing that [3].)
- The tests in this article did not tune reverse proxy buffers, which are 4KB by default. I was able to see moderate performance improvements (depending on the size of payload) by reducing the buffer size to 1KB and 2KB.
I want to thank Tyler for his considerate and careful approach, and for all the effort put into this!
[0]: https://caddy.community/t/seeking-performance-suggestions-fo...
[1]: https://twitter.com/mholt6/status/1570442275339239424 (thread)