racket/collects/tests/mzscheme/benchmarks/rx/python_prefix.py
Matthew Flatt 7e6ab6ee47 finish up rx benchmark
svn: r4337
2006-09-14 08:08:56 +00:00

11 lines
199 B
Python

import re
import time
def test(rx, input, iterations):
crx = re.compile(rx)
start = time.time()
for i in range(iterations):
re.search(crx, input)
print(time.time() - start)