webbench 对网站域名和IP分别做测试 性能差距特别大



 webbench -c 500 -t 30 'http://oo-o.cn/'
Speed=6560 pages/min, 44762 bytes/sec.

但是如果直接访问ip地址204.77.6.51性能就特别好


 webbench -c 500 -t 30 'http://204.77.6.51/'
Speed=301272 pages/min, 2189243 bytes/sec.

请问如何优化

编程 程序员 go centos http

不爱吐槽君 12 years, 4 months ago

你先确定直接压ip后端走了业务逻辑?,看这数据有点像请求没到后端直接被挡回的样子

长谷川直澄 answered 12 years, 4 months ago

Your Answer