Windows系统下压测工具SuperBenchmarker,俗称sb
。
安装
- 以管理员身份打开powershell。
- 运行(先关闭防火墙):
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
-
执行:
choco install superbenchmarker
-
测试是否安装成功:
xxx> sb
SuperBenchmarker 4.5.1
Copyright (C) 2021 Ali Kheyrollahi
ERROR(S):
Required option 'u, url' is missing.
-c, --concurrency (Default: 1) Number of concurrent requests
-n, --numberOfRequests (Default: 100) Total number of requests
-N, --numberOfSeconds Number of seconds to run the test. If specified, -n will be ignored.
-y, --delayInMillisecond (Default: 0) Delay in millisecond
-u, --url