文章目录
- 1.安装choco
- 2.安装superbenchmarker
- 3.启动gateway
- 4.执行superbenchmarker
1.安装choco
在windows中用管理员身份运行Powershell,之后执行如下代码:
代码语言:javascript复制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就安装成功了。
2.安装superbenchmarker
3.启动gateway
代码语言:javascript复制java -jar -Xmx512m -Xms512m gateway-server-0.0.1-SNAPSHOT.jar
4.执行superbenchmarker
代码语言:javascript复制sb -u http://localhost:8088/api/hello -c 20 -N 60