Permalink
Browse files

removed old node querystring stuff from benchmarks

  • Loading branch information...
1 parent 147d139 commit 78856e100c37fe1d34ef18f10684bebb1919aa49 @tj committed Jul 19, 2011
Showing with 7 additions and 22 deletions.
  1. +6 −21 benchmark.js
  2. +1 −1 examples.js
View
@@ -1,32 +1,17 @@
-var old = require('querystring')
- , qs = require('./')
- , times = 100000;
+var qs = require('./');
-var start = new Date
- , n = times;
-
-while (n--) old.parse('foo=bar');
-console.log('old simple: %dms', new Date - start);
-
-var start = new Date
+var times = 100000
+ , start = new Date
, n = times;
-while (n--) old.parse('user[name][first]=tj&user[name][last]=holowaychuk');
-console.log('old nested: %dms', new Date - start);
-
-
-console.log();
-
-
-var start = new Date
- , n = times;
+console.log('times: %d', times);
while (n--) qs.parse('foo=bar');
-console.log('new simple: %dms', new Date - start);
+console.log('simple: %dms', new Date - start);
var start = new Date
, n = times;
while (n--) qs.parse('user[name][first]=tj&user[name][last]=holowaychuk');
-console.log('new nested: %dms', new Date - start);
+console.log('nested: %dms', new Date - start);
View
@@ -36,4 +36,4 @@ var obj = qs.parse('user[names]=tj&user[names]=TJ&user[names]=Tyler');
console.log(obj)
var obj = qs.parse('user[name][first]=tj&user[name][first]=TJ');
-console.log(obj)
+console.log(obj)

0 comments on commit 78856e1

Please sign in to comment.