https://github.com/overlu/mini
https://github.com/overlu/mini/wiki
https://github.com/overlu/mini
Last synced: 6 months ago
JSON representation
https://github.com/overlu/mini/wiki
- Host: GitHub
- URL: https://github.com/overlu/mini
- Owner: overlu
- License: mit
- Created: 2020-08-08T13:04:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T06:37:09.000Z (over 1 year ago)
- Last Synced: 2025-09-17T13:58:46.811Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 172 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Mini, 基于`swoole4+`和`php8`的协程框架
```
_______ _____ __ _ _____
| | | | | \ | |
| | | __|__ | \_| __|__ 3.0.1
**********************************************************************************************
* App Information | Name: Mini, Env: Local, Timezone: UTC
* System Information | OS: Linux-4.4.0-22621-Microsoft-x86_64, PHP: 8.1.27, Swoole: 4.8.10
**********************************************************************************************
2024/01/05 08:57:00 🚀 mini http server [8 workers] running:0.0.0.0:9501...
2024/01/05 08:57:00 👀 watching start...
2024/01/05 08:57:00 📡 watching [40] files...
```
### Install Mini
```bash
composer create-project overlu/mini
```
### Run Mini
```bash
php bin/mini start
```
### More
[View Wiki](https://github.com/overlu/mini/wiki)
### Performance Testing
__2CPU/2G__
```bash
➜ ab -n 5000 -c 10 http://127.0.0.1:9501/
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Completed 5000 requests
Finished 5000 requests
Server Software: Mini
Server Hostname: 127.0.0.1
Server Port: 9501
Document Path: /
Document Length: 141 bytes
Concurrency Level: 10
Time taken for tests: 0.714 seconds
Complete requests: 5000
Failed requests: 0
Total transferred: 1730000 bytes
HTML transferred: 705000 bytes
Requests per second: 6998.25 [#/sec] (mean)
Time per request: 1.429 [ms] (mean)
Time per request: 0.143 [ms] (mean, across all concurrent requests)
Transfer rate: 2364.64 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 2
Processing: 0 1 0.4 1 4
Waiting: 0 1 0.4 1 4
Total: 1 1 0.4 1 5
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 2
80% 2
90% 2
95% 2
98% 3
99% 3
100% 5 (longest request)
```