Is it possible for me to do the performance testing in localhost with actual network environment?

若如初见. 提交于 2019-12-03 16:39:24

We've used Charles and Firefox Throttle in the past to simulate slow networks.

Yes, but you will need to connect to your application by IP address, not "localhost" or 127.0.0.1. Typically for web applications (HTTP) I use Fiddler which can simulate limited bandwidth, but only if you connect as I have noted. Other bandwidth limiters for non-HTTP I'm not sure/aware of.

Ab won't simulate low level network errors. If you're on linux, you can simulate some networking with 'tc'. See http://www.kdedevelopers.org/node/1878 for a small example.

You can set up a local tunnel to expose your localhost to the world, using Ngrok. From there you can use any number of online performance tools

You can throttle bandwidth via Chrome Dev Tools

Why can't you connect to a different PC, or even use a virtual machine and rate limit the virtual network connection?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!