如題,在mac os下無(wú)法運(yùn)行./benchmark -n10000 -h1 -c400 -p56789 127.0.0.1,會(huì)提示./benchmark: cannot execute binary file。benchmark的文件權(quán)限已經(jīng)是可讀寫(xiě)可執(zhí)行,求大神指點(diǎn)迷津。。。
mac os可能不支持
謝了,應(yīng)該是,我在linux下,可以運(yùn)行,./benchmark -n1 -h100000 -c1000 -p7272 127.0.0.1 運(yùn)行結(jié)果是Throughput: 0.00 [#/sec];不知道如何解讀。
benchmark是發(fā)送的hello字符串,要求服務(wù)端返回的也是hello字符串。
建議你使用ab測(cè)試。readme里面有腳本及方法
https://github.com/walkor/Workerman#benchmarks