Evaluation Item 4: NGINX Performance
As a foreword, this post is part of our horizontal evaluation of Raspberry Pi 5 and other models. Please see that post for further information on the evaluation.
Previous tests in this series can be found here:
Evaluation Item 1: CPU Test
Evaluation Item 2: Memory Test
Evaluation Item 3: Network Test
When we build personal websites or use Raspberry Pi as a local server, the most commonly used component is NGINX. NGINX is an open-source, high-performance HTTP and reverse proxy server. We have pre-configured NGINX on these 4 Raspberry Pi models: Zero 2W, PI3B+, PI4, and PI5. The test tool used this time is wrk, which is a lightweight but powerful HTTP benchmark tool, mainly used to perform performance tests on HTTP services in a single-machine multi-core CPU environment. The following are the test commands used:
wrk -t 4 -d 30s -c 100 http://127.0.0.1:80
The following is the data obtained from this test (Figure 1). Judging from the data, the performance of PI 5 is still very strong, and its benchmark data is still the highest. There is no problem in using it to run some small and medium-sized websites.
Figure 1