Created
February 13, 2011 00:33
-
-
Save Kami/824276 to your computer and use it in GitHub Desktop.
This file contains 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
import sys | |
import time | |
import random | |
sys.path.append('/usr/local/lib/python2.6/dist-packages/') | |
import waxeye | |
from ckparser import Parser | |
content = open('queries.txt', 'r').read() | |
queries = content.split('\n') | |
queries = queries[:-1] | |
start = time.time() | |
for query in queries: | |
ast = p.parse(query) | |
end = time.time() | |
diff = end - start | |
print '%s' % diff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment