Permalink
Browse files

finally removed coffeescript dependency thanks to @davidchambers

  • Loading branch information...
1 parent 7d2c9de commit 6a1f3fe6f47fb42cd9959f45215abba3082aee5f Matthew Mueller committed Jun 19, 2012
Showing with 15 additions and 14 deletions.
  1. +0 −12 benchmarks/htmlparser.coffee
  2. +14 −0 benchmarks/htmlparser.js
  3. +1 −2 package.json
@@ -1,12 +0,0 @@
-request = require 'request'
-cheerio = require 'cheerio'
-
-request 'http://yahoo.com', (err, response, body) ->
- if (!err && response.statusCode == 200)
- start = (new Date())
- $ = cheerio.load body
- end = (new Date())
-
- console.log 'ops took: ' + (end.getTime() - start.getTime()) + ' ms'
-
- # console.log $.html()
@@ -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');
+ }
+});
+
View
@@ -20,8 +20,7 @@
},
"devDependencies": {
"mocha" : "*",
- "expect.js" : "*",
- "coffee-script": "*"
+ "expect.js" : "*"
},
"scripts": {
"test" : "make test"

0 comments on commit 6a1f3fe

Please sign in to comment.