# php-stress-tester **Repository Path**: haimingwang/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-03-01 - **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+ ## Usage ```shell php start.php 100 1000 www.baidu.com / 443 1 ``` Output ```shell 测试中... 请求并发: 100 请求总数: 1000 平均耗时: 46.028732776642毫秒 最大耗时: 213.98997306824毫秒 最小耗时: 25.27904510498毫秒 成功请求总数: 1000 成功平均耗时: 46.028732776642毫秒 成功最大耗时: 213.98997306824毫秒 成功最小耗时: 25.27904510498毫秒 失败请求总数: 0 失败平均耗时: 0毫秒 失败最大耗时: 0毫秒 失败最小耗时: 0毫秒 ``` ## Arguments 1. Concurrency 2. Requests 3. Hostname 4. Uri 5. Port 6. SSL