fuzzysearch/benchmarks/dna_search.py

7 lines
225 B
Python
Raw Permalink Normal View History

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