From 535f985eed5d584ba7a4d6db7428e7613733fa2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dav=C3=ADd=20Brakenhoff?= Date: Wed, 26 Jun 2024 11:27:07 +0200 Subject: [PATCH] remove benchmarks for deprecated classes --- tests/test_006_benchmark.py | 86 ------------------------------------- 1 file changed, 86 deletions(-) diff --git a/tests/test_006_benchmark.py b/tests/test_006_benchmark.py index 25b194b..ffb3ae7 100644 --- a/tests/test_006_benchmark.py +++ b/tests/test_006_benchmark.py @@ -29,22 +29,6 @@ def test_benchmark_write_series_pas(benchmark): _ = benchmark(series_write, conn=conn) -@pytest.mark.benchmark(group="write_series") -@requires_pkg("pystore") -def test_benchmark_write_series_pystore(benchmark): - path = "./tests/data/pystore" - conn = pst.PystoreConnector("test", path) - _ = benchmark(series_write, conn=conn) - - -@pytest.mark.benchmark(group="write_series") -@requires_pkg("arctic") -def test_benchmark_write_series_arctic(benchmark): - connstr = "mongodb://localhost:27017/" - conn = pst.ArcticConnector("test", connstr) - _ = benchmark(series_write, conn=conn) - - @pytest.mark.benchmark(group="write_series") @requires_pkg("arcticdb") def test_benchmark_write_series_arcticdb(benchmark): @@ -73,22 +57,6 @@ def test_benchmark_read_series_pas(benchmark): _ = benchmark(series_read, conn=conn) -@pytest.mark.benchmark(group="read_series") -@requires_pkg("pystore") -def test_benchmark_read_series_pystore(benchmark): - path = "./tests/data/pystore" - conn = pst.PystoreConnector("test", path) - _ = benchmark(series_read, conn=conn) - - -@pytest.mark.benchmark(group="read_series") -@requires_pkg("arctic") -def test_benchmark_read_series_arctic(benchmark): - connstr = "mongodb://localhost:27017/" - conn = pst.ArcticConnector("test", connstr) - _ = benchmark(series_read, conn=conn) - - @pytest.mark.benchmark(group="read_series") @requires_pkg("arcticdb") def test_benchmark_read_series_arcticdb(benchmark): @@ -145,24 +113,6 @@ def test_benchmark_write_model_pas(benchmark): _ = benchmark(write_model, conn=conn, ml=ml) -@pytest.mark.benchmark(group="write_model") -@requires_pkg("pystore") -def test_benchmark_write_model_pystore(benchmark): - path = "./tests/data/pystore" - conn = pst.PystoreConnector("test", path) - ml = build_model(conn) - _ = benchmark(write_model, conn=conn, ml=ml) - - -@pytest.mark.benchmark(group="write_model") -@requires_pkg("arctic") -def test_benchmark_write_model_arctic(benchmark): - connstr = "mongodb://localhost:27017/" - conn = pst.ArcticConnector("test", connstr) - ml = build_model(conn) - _ = benchmark(write_model, conn=conn, ml=ml) - - @pytest.mark.benchmark(group="write_model") @requires_pkg("arcticdb") def test_benchmark_write_model_arcticdb(benchmark): @@ -187,24 +137,6 @@ def test_benchmark_write_model_nocheckts_pas(benchmark): _ = benchmark(write_model_nocheckts, conn=conn, ml=ml) -@pytest.mark.benchmark(group="write_model") -@requires_pkg("pystore") -def test_benchmark_write_model_nocheckts_pystore(benchmark): - path = "./tests/data/pystore" - conn = pst.PystoreConnector("test", path) - ml = build_model(conn) - _ = benchmark(write_model_nocheckts, conn=conn, ml=ml) - - -@pytest.mark.benchmark(group="write_model") -@requires_pkg("arctic") -def test_benchmark_write_model_nocheckts_arctic(benchmark): - connstr = "mongodb://localhost:27017/" - conn = pst.ArcticConnector("test", connstr) - ml = build_model(conn) - _ = benchmark(write_model_nocheckts, conn=conn, ml=ml) - - @pytest.mark.benchmark(group="write_model") @requires_pkg("arcticdb") def test_benchmark_write_model_nocheckts_arcticdb(benchmark): @@ -235,24 +167,6 @@ def test_benchmark_read_model_pas(benchmark): pst.util.delete_pas_connector(conn) -@pytest.mark.benchmark(group="read_model") -@requires_pkg("pystore") -def test_benchmark_read_model_pystore(benchmark): - path = "./tests/data/pystore" - conn = pst.PystoreConnector("test", path) - _ = benchmark(read_model, conn=conn) - pst.util.delete_pystore_connector(conn=conn) - - -@pytest.mark.benchmark(group="read_model") -@requires_pkg("arctic") -def test_benchmark_read_model_arctic(benchmark): - connstr = "mongodb://localhost:27017/" - conn = pst.ArcticConnector("test", connstr) - _ = benchmark(read_model, conn=conn) - pst.util.delete_arctic_connector(conn=conn) - - @pytest.mark.benchmark(group="read_model") @requires_pkg("arcticdb") def test_benchmark_read_model_arcticdb(benchmark):