Back to index

plt-scheme  4.2.1
Functions
python_prefix Namespace Reference

Functions

def test

Function Documentation

def python_prefix.test (   rx,
  input,
  iterations 
)

Definition at line 5 of file python_prefix.py.

00005 
00006 def test(rx, input, iterations):
00007     crx = re.compile(rx)
00008     start = time.time()
00009     for i in range(iterations):
00010         re.search(crx, input)
00011     print(time.time() - start)