fork(2) download
  1. import re, time
  2. text = " a b "
  3. pat = re.compile( ".*a.*?b.*" )
  4. t1 = time.time()
  5. for i in range( 500000 ):
  6. x = pat.match( text )
  7. t2=time.time()
  8. print( (t2-t1)*1000 )
Success #stdin #stdout 0.9s 9984KB
stdin
Standard input is empty
stdout
874.6535778045654