Test all possible combinations of number of readers and writers in test_lfc_prefetch performance test

This commit is contained in:
Konstantin Knizhnik
2025-03-16 09:03:36 +02:00
parent 802ee5cb90
commit cf419c9632

View File

@@ -11,8 +11,10 @@ from fixtures.utils import USE_LFC
@pytest.mark.timeout(1000)
@pytest.mark.parametrize("n_readers", [1, 2, 4, 8])
@pytest.mark.parametrize("n_writers", [0, 1, 2, 4, 8])
@pytest.mark.skipif(not USE_LFC, reason="LFC is disabled, skipping")
def test_lfc_prefetch(neon_simple_env: NeonEnv):
def test_lfc_prefetch(neon_simple_env: NeonEnv: n_readers: int, n_writers: int):
"""
Test resizing the Local File Cache
"""
@@ -34,8 +36,6 @@ def test_lfc_prefetch(neon_simple_env: NeonEnv):
n_records = 10000 # 80Mb table
top_n = n_records // 4 # 20Mb - should be larger than LFC size
test_time = 100.0 # seconds
n_readers = 10
n_writers = 2
conn = endpoint.connect()
cur = conn.cursor()