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

Side by Side Diff: net/data/proxy_resolver_v8_tracing_unittest/dns.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: that's what she said 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 alert('iteration: ' + g_iteration++);
5
6 var ips = [
7 myIpAddress(),
8 dnsResolve(''),
9 dnsResolve('host1'),
10 dnsResolve('host2'),
11 dnsResolve('host3'),
12 myIpAddress(),
13 dnsResolve('host3'),
14 dnsResolve('host1'),
15 myIpAddress(),
16 dnsResolve('host2'),
17 dnsResolve('host4'),
18 ];
19
20 for (var i = 0; i < ips.length; ++i) {
21 // Stringize everything.
22 ips[i] = '' + ips[i];
23 }
24
25 var proxyHost = ips.join('-');
26 return "PROXY " + proxyHost + ":99";
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698