# php-stress-tester **Repository Path**: fly2006/php-stress-tester ## Basic Information - **Project Name**: php-stress-tester - **Description**: 基于Swoole协程的HTTP压力测试工具 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 11 - **Created**: 2018-04-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # php-stress-tester ## Description A simple stress tester based on swoole coroutine. ## Requirements 1. Swoole2.1.0+ (编译时请添加参数 --enable-openssl --enable-coroutine) 2. PHP7.0+ (请使用稳定版,经测试php7.2.0beta3下有内存泄漏问题) ## Usage ```shell php start.php 100 1000 www.baidu.com / 443 1 1 ``` Output ```shell 测试中... 最大请求并发: 100 请求并发: 100 请求总数: 1000 平均耗时: 55.205963850021毫秒 最大耗时: 180.87291717529毫秒 最小耗时: 39.553880691528毫秒 成功请求总数: 1000 成功率: 100% 成功平均耗时: 55.205963850021毫秒 成功最大耗时: 180.87291717529毫秒 成功最小耗时: 39.553880691528毫秒 失败请求总数: 0 失败率: 0% 失败平均耗时: 0毫秒 失败最大耗时: 0毫秒 失败最小耗时: 0毫秒 平均QPS: 1000 内存占用: 1938.416KB ``` ## Arguments 1. Concurrency 2. Requests 3. Hostname 4. Uri 5. Port 6. SSL 7. Concurrency Step 8. Memory Limit