使用 POST 上传文件的 httperf 基准测试

Aks*_*235 5 benchmarking httperf

我想使用 HTTPERF 对文件上传到远程服务器进行基准测试

我知道有一个 wsesslog 选项,我可以在其中提供表单数据的条目。

但我也可以发送文件的发布请求吗?

就像是:

httperf --hog --server 127.0.0.1 --port 5000
--add-header="Content-Type: application/x-www-form-urlencoded\n" --wsesslog=150,0,httperf_content

httperf_content 文件包含

/ method=POST contents="file=PATH_TO_FILE"
Run Code Online (Sandbox Code Playgroud)