From 21738dd17fef3fa73de932f022764bc18e07315a Mon Sep 17 00:00:00 2001 From: Tamino <36358673+PalmTamino@users.noreply.github.com> Date: Sun, 12 Jan 2025 18:48:28 +0100 Subject: [PATCH] add english to the bottom --- docs/性能对比.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/docs/性能对比.md b/docs/性能对比.md index f90f44b..478f404 100644 --- a/docs/性能对比.md +++ b/docs/性能对比.md @@ -1,4 +1,3 @@ - # 性能对比总结 ## 测试使用机器配置 @@ -24,4 +23,34 @@ CPU核心数量: 4核 |场景 | php-fpm | php-fpm(开启opcache)|laravels | webman(docker)| |---- | ---- |---- |--- |---- | | 登录页面 | FCP(7秒/2.9秒) | FCP (7秒/2.9秒) | FCP(7.1秒/2.7秒) | FCP(7.3秒/2.9秒) | -| 注册页面 | FCP(7.1秒/3秒) | FCP (7秒/2.8秒) | FCP(7.1秒/2.7秒) | FCP(7.3秒/2.9秒) | \ No newline at end of file +| 注册页面 | FCP(7.1秒/3秒) | FCP (7秒/2.8秒) | FCP(7.1秒/2.7秒) | FCP(7.3秒/2.9秒) | + +# Performance Comparison Summary + +## Test Machine Configuration +- **CPU Model**: Intel 8255C +- **CPU Cores**: 4 cores +- **Memory**: 8 GB + +--- + +## Concurrent Performance Comparison Across Environments +> **php-fpm** refers to the typical installation method via aapanel (or BT panel). Concurrent testing was conducted using `wrk`. + +| Scenario | php-fpm (Traditional) | php-fpm (Traditional with OPCache) | Laravels | Webman (Docker) | +|---------------|------------------------|------------------------------------|----------|-----------------| +| Homepage | 6 req/s | 157 req/s | 477 req/s| 803 req/s | +| User Subscription | 6 req/s | 196 req/s | 586 req/s| 1064 req/s | +| User Homepage Latency | 308 ms | 110 ms | 101 ms | 98 ms | + +--- + +## Frontend Load Speed Comparison (v2b Original/Xboard) +> **FCP (First Contentful Paint)** measures the time taken to render the first visible content. Lower values are better. + +> **FCP (Original Time / Xboard Time)** + +| Scenario | php-fpm | php-fpm (with OPCache) | Laravels | Webman (Docker) | +|--------------|-----------------------------|---------------------------------|--------------------|-----------------------| +| Login Page | FCP (7s / 2.9s) | FCP (7s / 2.9s) | FCP (7.1s / 2.7s) | FCP (7.3s / 2.9s) | +| Registration Page | FCP (7.1s / 3s) | FCP (7s / 2.8s) | FCP (7.1s / 2.7s) | FCP (7.3s / 2.9s) |