輕量云 1C2G 5M
CentOS 7.6 64bit
PHP 7.4.30
count:8
reusePort:true
其余默認(rèn)
Route::get('/test',[\app\controller\Index::class,'test']);
public function test(Request $request):Response
{
$tmp = [];
foreach ($request->header() as $k=>$v){
$tmp[$k] = $v;
}
return json($tmp);
}
nginx配置為默認(rèn)配置,根據(jù)文檔中增加webman反向代理;
根據(jù)上面的結(jié)果,我覺的可能帶寬在50M以內(nèi),都不需要特殊優(yōu)化,直接跑就可以了。
從使用率而言,webman確實(shí)能把機(jī)器性能壓榨到極致。
厲害