Re:A Page Load Time Comparison of Raspberry Pi 3 and 4 Web S...
by Ndymium on Thursday October 29, 2020 @10:23AM
(#24930737)
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 the writer's Internet connection.
Re:A Page Load Time Comparison of Raspberry Pi 3 and 4 Web S...
by zokier on Thursday October 29, 2020 @11:55AM
(#24931843)
TLS probably adds significant latency here. Was your 1k RPS with TLS?
Re:A Page Load Time Comparison of Raspberry Pi 3 and 4 Web S...
by coder543 on Thursday October 29, 2020 @01:15PM
(#24932762)
People measuring RPS (requests per second) are rarely measuring CPS (connections per second), so the TLS setup overhead would be amortized across numerous requests.
A single webpage will often load a number of asset files over the same underlying connection, so it's not like CPS is the single, entirely accurate measure and RPS is just bad or something... they're both valid, interesting numbers.
Even then, TLS setup isn't that expensive, in my opinion. Someone else here mentioned 35% overhead from TLS on a Raspberry Pi, which seems high to me... but it would still be orders of magnitude better performance than what the original article on this thread was claiming.
"I have seen it dynamically compress and serve at a sustained 2.7 times per second a small webpage"
You should be able to get a lot more performance out of a Rasperry Pi 3 than that! It has similar capacity to the 2000-era workhorse Sun E450 https://fanf.livejournal.com/141066.html