Rust Rocket 压测

ab -c 500 -n 5000

Raw PHP 7.4:
Requests per second:    6166.75 [#/sec] (mean)
Requests per second:    6373.96 [#/sec] (mean)
Requests per second:    5795.25 [#/sec] (mean)
Laravel:
Requests per second:    236.49 [#/sec] (mean)
Requests per second:    244.50 [#/sec] (mean)
Requests per second:    248.42 [#/sec] (mean)

Laravel + Redis:
Requests per second:    227.98 [#/sec] (mean)
Requests per second:    236.90 [#/sec] (mean)
Requests per second:    227.95 [#/sec] (mean)

Laravel + MySQL:
Requests per second:    198.50 [#/sec] (mean)
Requests per second:    200.09 [#/sec] (mean)
Requests per second:    192.09 [#/sec] (mean)

Laravel + Redis + MySQL:
Requests per second:    189.48 [#/sec] (mean)
Requests per second:    188.42 [#/sec] (mean)
Requests per second:    185.93 [#/sec] (mean)
Rocket:
Requests per second:    18065.80 [#/sec] (mean)
Requests per second:    17343.41 [#/sec] (mean)
Requests per second:    18273.38 [#/sec] (mean)

Rocket + Redis:
Requests per second:    7863.85 [#/sec] (mean)
Requests per second:    7956.68 [#/sec] (mean)
Requests per second:    8421.22 [#/sec] (mean)

Rocket + MySQL:
Requests per second:    5997.93 [#/sec] (mean)
Requests per second:    6023.76 [#/sec] (mean)
Requests per second:    5907.20 [#/sec] (mean)

Rocket + Redis + MySQL:
Requests per second:    4108.98 [#/sec] (mean)
Requests per second:    3879.90 [#/sec] (mean)
Requests per second:    3851.23 [#/sec] (mean)
Nginx + Rocket:
Requests per second:    15234.06 [#/sec] (mean)
Requests per second:    15829.55 [#/sec] (mean)
Requests per second:    14942.72 [#/sec] (mean)

Nginx + Rocket + Redis:
Requests per second:    7273.62 [#/sec] (mean)
Requests per second:    6669.81 [#/sec] (mean)
Requests per second:    6102.97 [#/sec] (mean)

Nginx + Rocket + MySQL:
Requests per second:    5046.78 [#/sec] (mean)
Requests per second:    4724.10 [#/sec] (mean)
Requests per second:    4658.33 [#/sec] (mean)

Nginx + Rocket + Redis + MySQL:
Requests per second:    3443.37 [#/sec] (mean)
Requests per second:    3478.58 [#/sec] (mean)
Requests per second:    3395.19 [#/sec] (mean)