2014-03-12 10:00:21 +00:00
|
|
|
import timeit
|
|
|
|
|
|
|
|
print timeit.timeit(
|
2014-03-15 17:36:13 +00:00
|
|
|
'find_near_matches_levenshtein_ngrams(pattern, text, 1)',
|
|
|
|
setup='text = "ATCG" * (10**3); pattern = "GCTAGCTAGCTA"; from fuzzysearch import find_near_matches_levenshtein_ngrams',
|
2014-03-12 10:00:21 +00:00
|
|
|
)
|