mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
docs: 增加性能测试、页面展示
This commit is contained in:
parent
a8a627c918
commit
82b6bce847
BIN
docs/images/dashboard.png
Normal file
BIN
docs/images/dashboard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 KiB |
25
docs/性能对比.md
Normal file
25
docs/性能对比.md
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
# 性能对比总结
|
||||
|
||||
## 测试使用机器配置
|
||||
CPU型号: Intel 8255C
|
||||
CPU核心数量: 4核
|
||||
内存:8G
|
||||
|
||||
|
||||
## 不同环境并发对比
|
||||
> php-fpm指的就是我们平时使用的aapanel(宝塔)的安装方式, 并发测试使用的是wrk
|
||||
|
||||
|场景 | php-fpm(传统) | php-fpm(传统开启opcache) | webman(docker)|
|
||||
|---- | ---- |---- |----|
|
||||
|首页 | 6请求/秒 | 157请求/秒 | 803请求/秒 |
|
||||
|用户订阅 | 6请求/秒 | 196请求/秒 | 1064请求/秒 |
|
||||
|用户首页延迟| 308ms | 110ms | 98ms |
|
||||
|
||||
## 前端加载速度对比(使用lighthouse测试)
|
||||
>FCP(First Contentful Paint) 指的是 首次内容渲染 耗费的时间
|
||||
|
||||
|场景 | php-fpm(v2b原版/Xboard) | php-fpm(传统开启opcache)(v2b原版/Xboard) | webman(docker)|
|
||||
|---- | ---- |---- |---- |
|
||||
| 登录页面 | FCP(7s/2.9s) | FCP (7s/2.9s) | FCP(7.3s/2.9s) |
|
||||
| 注册页面 | FCP(7.1s/3s) | FCP (7s/2.8s) | FCP(7.3s/2.9s) |
|
@ -32,11 +32,16 @@ TRC20: TLypStEWsVrj6Wz9mCxbXffqgt5yz3Y4XB
|
||||
- Redis
|
||||
- Laravel
|
||||
|
||||
## 性能评测 [点击查看](./docs/性能对比.md)
|
||||
|
||||
## 页面展示
|
||||
![示例图片](./docs/images/dashboard.png)
|
||||
|
||||
## 安装 / 更新 / 回滚
|
||||
> 这里将给你介绍不同方式的 安装、更新、回滚步骤
|
||||
### 安装前准备
|
||||
- 安装前你需要自行安装好Mysql数据库(用户量小的可以忽略,使用Sqlite)
|
||||
- 安装前你需要自行安装好redis
|
||||
- 安装前你需要自行安装好redis <span style="color:red">(必须)</span>
|
||||
### Docker Compose 方式(推荐)
|
||||
#### **安装部署**
|
||||
1. 安装docker
|
||||
@ -164,7 +169,7 @@ wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bas
|
||||
> aaPanel 面板 > App Store > 找到PHP 8.1点击Setting > Install extentions选择以下扩展进行安装
|
||||
- redis
|
||||
- fileinfo
|
||||
- swoole5
|
||||
- swoole4
|
||||
- readline
|
||||
- event
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user