mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
Test all possible combinations of number of readers and writers in test_lfc_prefetch performance test
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user