Skip to content

Instantly share code, notes, and snippets.

@Kami
Created February 13, 2011 00:35
Show Gist options
  • Select an option

  • Save Kami/824278 to your computer and use it in GitHub Desktop.

Select an option

Save Kami/824278 to your computer and use it in GitHub Desktop.
var parser = require('./parser.js');
var fs = require('fs');
var sys = require('util');
content = fs.readFileSync('queries.txt');
queries = content.toString().split('\n')
var len = queries.length;
var ast, query;
var p = new parser.Parser();
var start = new Date().getTime();
for (var i = 0; i < (len - 1); i++)
{
query = queries[i];
ast = p.parse(query);
}
var end = new Date().getTime();
console.log((end-start))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment