在windows上通过choco安装superbenchmarker进行压测

226 阅读1分钟

本文已参与「新人创作礼」活动,一起开启掘金创作之路。

@[toc]

1.安装choco

在windows中用管理员身份运行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安装 这样choco就安装成功了。 查看版本信息

2.安装superbenchmarker

安装superbenchmarker

3.启动gateway

java -jar -Xmx512m -Xms512m gateway-server-0.0.1-SNAPSHOT.jar

启动gateway

4.执行superbenchmarker

sb -u http://localhost:8088/api/hello -c 20 -N 60

执行superbenchmarker

执行结果