all da files
This commit is contained in:
		
							
								
								
									
										14
									
								
								node_modules/cheerio/benchmarks/htmlparser.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								node_modules/cheerio/benchmarks/htmlparser.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
var request = require('request'),
 | 
			
		||||
      cheerio = require('cheerio');
 | 
			
		||||
 | 
			
		||||
request('http://yahoo.com', function(err, response, body) {
 | 
			
		||||
  if (!err && response.statusCode === 200) {
 | 
			
		||||
    var start = new Date(),
 | 
			
		||||
        $ = cheerio.load(body),
 | 
			
		||||
        end = new Date();
 | 
			
		||||
 | 
			
		||||
    console.log('ops took: ' + (end.getTime() - start.getTime()) + ' ms');
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user