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

Unified Diff: tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/benchmarks/htmlparser.js

Issue 125733002: Add vulcanize to tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/benchmarks/htmlparser.js
diff --git a/tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/benchmarks/htmlparser.js b/tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/benchmarks/htmlparser.js
new file mode 100644
index 0000000000000000000000000000000000000000..fde5f678c465a7ac2ff0b15fa6dfeff32586408e
--- /dev/null
+++ b/tools/vulcanize/node_modules/vulcanize/node_modules/cheerio/benchmarks/htmlparser.js
@@ -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');
+ }
+});
+

Powered by Google App Engine
This is Rietveld 408576698