Home  >  Q&A  >  body text

程序员 - 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.

请问如何优化

迷茫迷茫2734 days ago938

reply all(4)I'll reply

  • 高洛峰

    高洛峰2017-04-24 16:01:17

    Are you sure to directly press the IP backend and remove the business logic? , looking at this data, it looks like the request was blocked directly before reaching the backend

    reply
    0
  • 習慣沉默

    習慣沉默2017-04-24 16:01:17

    It’s obviously not the same page when you open it.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-04-24 16:01:17

    Did you use a server’s default static page for comparison testing? The two returned things are different, of course there is a big gap.

    reply
    0
  • 某草草

    某草草2017-04-24 16:01:17

    Please configure your oo-o.cn as default

    reply
    0
  • Cancelreply