You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
response.end('<html><head><title>Page has '+linkCount+' links</title></head><body><div id="time">'+respondTime+'</div>'+links+'</body></html>\n');
12
-
},respondTime);
13
-
}).listen(8486);
14
-
15
-
varurls=[];
16
-
for(varu=0;u<2;u++){
17
-
for(vari=0;i<1000;i++){
18
-
urls.push('http://localhost:8486');
19
-
};
20
-
};
21
-
22
-
setTimeout(function(){
23
-
varscraper=require('scraper');
24
-
scraper(urls,function(err,$){
25
-
if(err){
26
-
console.log(err);
27
-
return;
28
-
}
29
-
console.log('Server took '+$('#time').text()+'ms to respond, found '+$('a').length+' <a> @ '+newDate().toString()+' with title "'+$('title').text()+'"');
response.end('<html><head><title>Page has '+linkCount+' links</title></head><body><div id="time">'+respondTime+'</div>'+links+'</body></html>\n');
12
+
},respondTime);
13
+
}).listen(8486);
14
+
15
+
varurls=[];
16
+
for(varu=0;u<2;u++){
17
+
for(vari=0;i<1000;i++){
18
+
urls.push('http://localhost:8486');
19
+
};
20
+
};
21
+
22
+
setTimeout(function(){
23
+
varscraper=require('../lib/scraper');
24
+
scraper(urls,function(err,$){
25
+
if(err){
26
+
console.log(err);
27
+
return;
28
+
}
29
+
console.log('Server took '+$('#time').text()+'ms to respond, found '+$('a').length+' <a> @ '+newDate().toString()+' with title "'+$('title').text()+'"');
0 commit comments