0

[Telemetry] Use 127.0.0.1 instead of localhost for TemporaryHTTPServer.

On Windows 7, localhost is extremely slow. This simple change brings the moz
page cycler cycle time down from 1714ms to 122ms! That restores it to roughly
the level it was at prior to the shift to Telemetry.

BUG=196411
TEST=python tools\perf\run_multipage_benchmarks --browser=system page_cycler tools\perf\page_sets\page_cycler\moz.json
TBR=dtu@chromium.org
NOTRY=True

Review URL: https://codereview.chromium.org/12704006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189043 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
tonyg@chromium.org
2013-03-19 16:49:53 +00:00
parent 8325335222
commit e7bae9ac64

@ -158,7 +158,7 @@ class DoNothingForwarder(object):
@property
def url(self):
assert self._host_port
return 'http://localhost:%i' % self._host_port
return 'http://127.0.0.1:%i' % self._host_port
def Close(self):
self._host_port = None