全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1040|回复: 4

在ARM架构运行webBenchmark

[复制链接]
发表于 2021-12-12 21:10:46 | 显示全部楼层 |阅读模式
本帖最后由 剑皇大队长 于 2021-12-19 16:29 编辑

项目地址:https://github.com/maintell/webBenchmark (来自:https://hostloc.com/thread-692122-1-1.html

怎样编译适合你的环境架构的二进制程序(适用于任何架构、系统)?
首先安装Git和Golang
CentOS:yum install git golang
Debian/Ubuntu:apt install git golang
Termux:pkg install git golang

然后
  1. git clone https://github.com/maintell/webBenchmark.git
  2. cd webBenchmark
  3. go build
复制代码


国内鸡:
  1. export GOPROXY=https://goproxy.io
  2. git clone https://ghproxy.com/github.com/maintell/webBenchmark.git
  3. cd webBenchmark
  4. go build
复制代码




提供几个已经编译好的


Linux+Arm64

快速运行
  1. wget -qO webBenchmark https://cdn.jsdelivr.net/gh/JHDDZ/d/webBenchmark_linux_arm64
  2. chmod +x webBenchmark
  3. ./webBenchmark -c 32 -s http://example.link
复制代码

注意替换下载链接



Android+Arm64
可在Termux运行

快速运行
  1. wget -qO webBenchmark https://cdn.jsdelivr.net/gh/JHDDZ/d@main/webBenchmark_android_arm64
  2. chmod +x webBenchmark
  3. ./webBenchmark -c 32 -s http://example.link
复制代码

注意替换下载链接

 楼主| 发表于 2021-12-12 21:12:05 | 显示全部楼层
另外问一下有没有大佬知道,
为什么在鲲鹏环境和骁龙环境编译的不能通用
发表于 2021-12-12 21:12:52 | 显示全部楼层
好家伙  这是要全平台适配剑皇了
 楼主| 发表于 2021-12-12 21:17:50 | 显示全部楼层
gr58046576 发表于 2021-12-12 21:12
好家伙  这是要全平台适配剑皇了

那必须的

只要是鸡,不管什么架构什么系统,都得能跑啊
发表于 2021-12-30 11:39:49 | 显示全部楼层
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p {"www":1,"qq":"2ss"}
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p '{"www":1,"qq":"2ss"}'
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p "{"www":1,"qq":"2ss"}"

webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p www=123&q=321
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p 'www=123&q=321'
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p "www=123&q=321"
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p "start":{"100"}, "hobby":{"xxxx"}

webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p 'www=123'
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p "www=123"
webBenchmark_x64.exe -c 5 -s http://127.0.0.2/post.php -p www=123
复制代码


以上-p参数的值都设置不成功,请问高手能告诉我怎么设置post的参数吗?

https://github.com/maintell/webBenchmark
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-28 19:49 , Processed in 0.067772 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表