Live data from Hacker News

A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers

cheapskatesguide.org

1–10 of 24 posts

Re: A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers

#4
It seems to me that this is mostly benchmarking the performance of the (low bandwidth, high latency) DSL uplink, not the Raspberry Pi.

"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

Re: A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers

#5
Not a comment on the benchmarks themselves, but why not pre-compress the assets, and let the server simply pipe the data directly? Probably increase your throughput not insignificantly (given how prevalent compression support is in modern browsers).

Re: A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers

#7
post #4

It seems to me that this is mostly benchmarking the performance of the (low bandwidth, high latency) DSL uplink, not the Raspberry Pi. " 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

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 Servers

#9
> I have done this in part to prove that even individuals on tight budgets can enjoy the free speech benefits of running web servers at home.

I’d caution people against running any kind of controversial thing on their home network. All it takes is a few complaints against your ISP and it will disappear unless you have some business account, and even still.

Re: A Page Load Time Comparison of Raspberry Pi 3 and 4 Web Servers

#10

> I have done this in part to prove that even individuals on tight budgets can enjoy the free speech benefits of running web servers at home. I’d caution people against running any kind of controversial thing on their home network. All it takes is a few complaints against your ISP and it will disappear unless you have some business account, and even still.

Running a .onion site over tor seems like it’d avoid this; and also still works when your ISP has you NAT’ed into a private address space - The tor server setup is pretty trivial (no harder than setting up nginx etc), the only downside (which is a pretty big downside) is that it requires extra effort from users :(
Post reply on HN