launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #07726
New local-latency script to simulate latency on your own box
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I've added a new script, "local-latency" to our utilities directory.
This adds 500 ms of latency (in each direction) to port 443 (https) on
your local machine.
utilities/local-latency start will induce latency.
utilities/local-latency stop will turn it off.
The "start" subcommand also takes a --delay option to control the amount
of latency. It's based on commands supplied by Martin Pool, but I
turned it into script so it's easy to invoke.
We want our AJAX to be as responsive as possible, and simulating latency
will give you a better idea of how responsive your new code is. I know
it would have been useful for me when I worked on the translation
sharing-details page.
I've added latency only to port 443, not the entire lo interface,
because we don't want to induce latency on the database connections.
The original commands are here:
http://doc.bazaar.canonical.com/bzr.dev/developers/testing.html#simulating-slow-networks
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk477toACgkQ0F+nu1YWqI1tGACdGT6XVG/cgrjQUxM8kNSrMrBG
TecAnjstBBTTYpJyQkihmiI0KTeUAuum
=d6pn
-----END PGP SIGNATURE-----