File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,13 +127,13 @@ def benchmark_function(name: str) -> None:
127127 assert is_palindrome_ignore_case_and_spaces (key ) == value
128128 print ("a man a plan a canal panama" )
129129
130- # finished 500,000 runs in 1.90863 seconds
130+ # finished 500,000 runs in 0.46793 seconds
131131 benchmark_function ("is_palindrome_slice" )
132- # finished 500,000 runs in 2.80057 seconds
132+ # finished 500,000 runs in 0.85234 seconds
133133 benchmark_function ("is_palindrome" )
134- # finished 500,000 runs in 4.50983 seconds
134+ # finished 500,000 runs in 1.32028 seconds
135135 benchmark_function ("is_palindrome_recursive" )
136- # finished 500,000 runs in 6.81874 seconds
136+ # finished 500,000 runs in 2.08679 seconds
137137 benchmark_function ("is_palindrome_traversal" )
138- # finished 500,000 runs in 10.64074 seconds
138+ # finished 500,000 runs in 4.27493 seconds
139139 benchmark_function ("is_palindrome_ignore_case_and_spaces" )
You can’t perform that action at this time.
0 commit comments