Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: net/data/proxy_resolver_v8_tracing_unittest/global_sideffects4.js

Issue 11885009: Improve performance of proxy resolver by tracing DNS dependencies. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: re-upload due to failure last time Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 var g_iteration = 0;
2
3 function FindProxyForURL(url, host) {
4 g_iteration++;
5
6 for (var i = 0; i < g_iteration; ++i) {
7 myIpAddress();
8 }
9
10 var result = '' + dnsResolve('host' + g_iteration);
11 result += g_iteration;
12
13 alert('iteration: ' + g_iteration);
14 return 'PROXY ' + result + ':34';
15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698