Skip to content

Commit 26d56a5

Browse files
committed
fix: remove performance tests
Signed-off-by: szymonmaszke <[email protected]>
1 parent fb97d64 commit 26d56a5

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

tests/test_cogeol.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
from __future__ import annotations
99

10-
import time
11-
1210
import pytest
1311

1412
import cogeol
@@ -33,18 +31,6 @@ def test_incorrect_cache_duration() -> None:
3331
_ = cogeol.versions(cache_duration=-1)
3432

3533

36-
def test_speedup() -> None:
37-
"""Test the speedup done by cache."""
38-
start = time.time()
39-
_ = cogeol.versions(cache_duration=0)
40-
middle = time.time()
41-
_ = cogeol.versions(cache_duration=None)
42-
end = time.time()
43-
no_cache = middle - start
44-
cache = end - middle
45-
assert cache < no_cache
46-
47-
4834
@pytest.mark.parametrize("cache_duration", (3600, 0, None))
4935
def test_scientific(cache_duration: None | int) -> None:
5036
"""Test the scientific versioning (Scientific Python SPEC0).

0 commit comments

Comments
 (0)