无法运行测试程序Benchmark

chicbo

如题,在mac os下无法运行./benchmark -n10000 -h1 -c400 -p56789 127.0.0.1,会提示./benchmark: cannot execute binary file。benchmark的文件权限已经是可读写可执行,求大神指点迷津。。。

3640 1 0
1个回答

walkor

mac os可能不支持

  • chicbo 2016-01-06

    谢了,应该是,我在linux下,可以运行,./benchmark -n1 -h100000 -c1000 -p7272 127.0.0.1 运行结果是Throughput: 0.00 [#/sec];不知道如何解读。

  • walkor 2016-01-06

    benchmark是发送的hello字符串,要求服务端返回的也是hello字符串。
    建议你使用ab测试。readme里面有脚本及方法
    https://github.com/walkor/Workerman#benchmarks

年代过于久远,无法发表回答
🔝