Back to index

plt-scheme  4.2.1
python_prefix.py
Go to the documentation of this file.
00001 
00002 import re
00003 import time
00004 
00005 def test(rx, input, iterations):
00006     crx = re.compile(rx)
00007     start = time.time()
00008     for i in range(iterations):
00009         re.search(crx, input)
00010     print(time.time() - start)