English 中文(简体)
Is it possible for me to do the performance testing in localhost with actual network environment?
原标题:

I need to test the performance of application running on localhost as if it were in the online environment. I mean the performance test conducted by the network traffic simulation, limited bandwidth simulation, or other parameter as if it were online.

Could Apache Ab do the simulation?

问题回答

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

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

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





相关问题
Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签