Skip to content

Commit

Permalink
Remove performance test
Browse files Browse the repository at this point in the history
Overkill, slows down unit tests

Co-authored-by: Pierre Sassoulas <[email protected]>
  • Loading branch information
Lihu Ben-Ezri-Ravin and Pierre-Sassoulas authored Jul 29, 2022
1 parent 3347cf5 commit b48c339
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/config/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,6 @@ def _template_run(in_string):

assert _template_run(in_string) == [re.compile(regex) for regex in expected]

# Catch trivially nonlinear performance
small_input_time = timeit.timeit(
"_template_run(in_string*100)",
globals=locals(),
number=10,
)
large_input_time = timeit.timeit(
"_template_run(in_string*1000)",
globals=locals(),
number=10,
)
fudge_factor = 3
assert large_input_time < small_input_time * 10 * fudge_factor


def test_short_verbose(capsys: CaptureFixture) -> None:
Expand Down

0 comments on commit b48c339

Please sign in to comment.