fuzzysearch/benchmarks/dna_search.py

7 lines
220 B
Python
Raw Normal View History

import timeit
print timeit.timeit(
'find_near_matches(pattern, text, 1)',
setup='text = "ATCG" * (10**3); pattern = "GCTAGCTAGCTA"; from fuzzysearch import find_near_matches_with_ngrams as find_near_matches',
)