Earlier quoted context omitted.
Yeah these numbers seem way off. I did some stress tests for my thesis and was able to get 20-90 requests per second served from a Raspberry Pi 2 running a PHP website with a PostgreSQL database, depending on the complexity of the page. An equivalent site programmed in Elixir fared even better. With plain Nginx serving a static HTML file, I could hit 1000 requests per second. So it does seem the bottleneck here is th…
TLS probably adds significant latency here. Was your 1k RPS with TLS?
A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers
21–24 of 24 posts
Re: A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers
#22I think this is a good time to plug the webring for geeks, just what you should join if you're running your website on your home connection! http://geekring.net/
Re: A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers
#23I ran my own Pi0w site through the test to see how it compares. About 35% of the time is spent on SSL, similar to what this person saw. I'm not going to remove SSL, but I'm surprised it is such a big part of the page load.
https://www.raspberrypi.org/forums/viewtopic.php?p=1705614#p...
Re: A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers
#24I ran my own Pi0w site through the test to see how it compares. About 35% of the time is spent on SSL, similar to what this person saw. I'm not going to remove SSL, but I'm surprised it is such a big part of the page load.
One reason why the PI can be slow here is lack of any ARMv8 Crypto Extensions and by running in 64 bit mode it can make it even slower. https://www.raspberrypi.org/forums/viewtopic.php?p=1705614#p...
The 64-bit versus 32-bit thing is almost certainly software wonkiness, as that forum post indicates. There's no reason the 64-bit mode should be slower than 32-bit mode for that task, and benchmarks often show that 64-bit ARM is actually measurably faster than running in 32-bit mode, due to the additional available registers and whatnot.