Brak opisu

benchmark.js 355B

1234567891011121314151617
  1. var qs = require('./');
  2. var times = 100000
  3. , start = new Date
  4. , n = times;
  5. console.log('times: %d', times);
  6. while (n--) qs.parse('foo=bar');
  7. console.log('simple: %dms', new Date - start);
  8. var start = new Date
  9. , n = times;
  10. while (n--) qs.parse('user[name][first]=tj&user[name][last]=holowaychuk');
  11. console.log('nested: %dms', new Date - start);