File: chat-websocket/node_modules/express/node_modules/connect/node_modules/qs/benchmark.js

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   chat-websocket/node_modules/express/node_modules/connect/node_modules/qs/benchmark.js   Download  
File: chat-websocket/node_modules/express/node_modules/connect/node_modules/qs/benchmark.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 355 bytes
 

Contents

Class file image Download
var qs = require('./'); var times = 100000 , start = new Date , n = times; console.log('times: %d', times); while (n--) qs.parse('foo=bar'); 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('nested: %dms', new Date - start);