You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
401 B

import time
from hangman import load_words,filter_wordlist,ALPHABET
words = load_words('words.txt')
def test(input):
s = time.perf_counter()
filter_wordlist('.....',ALPHABET,words,True)
times_mp = time.perf_counter() - s
s = time.perf_counter()
filter_wordlist('.....',ALPHABET,words,False)
times_sc = time.perf_counter() - s
return dict(time_mp=times_mp,times_sc=times_sc)