Created
February 13, 2011 00:35
-
-
Save Kami/824278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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