# php-ab-exe **Repository Path**: mk9007/php-ab-exe ## Basic Information - **Project Name**: php-ab-exe - **Description**: 一个使用php封装后的ab.exe测试工具 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-04-18 - **Last Updated**: 2024-02-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 一个使用php封装后的ab.exe测试工具 ```shell script php>5.3+ ``` ```shell script #最简单的并发测试 php ab.php http://127.0.0.1/index php ab.php https://127.0.0.1/index ``` ```shell script #设定请求次数,和并发数 php .\ab.php -n 20 -c 5 http://127.0.0.1/index ``` ```shell script #参数详解 -d post 或者 get 请求时需要携带的参数 -d "a=1&b=2" -X POST|GET -n 在测试会话中所执行的请求个数 -c 并发数量 ```