mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 11:14:26 +00:00
16 lines
615 B
Python
16 lines
615 B
Python
"""One fixed paired-read policy; workload, collector and report share it."""
|
|
from pathlib import Path
|
|
from common import digest, read_json
|
|
|
|
PATH = Path(__file__).with_suffix('.json')
|
|
PROFILE = read_json(PATH)
|
|
IDENTITY = {'version': PROFILE['version'], 'sha256': digest(PATH)}
|
|
STEPS = [{'pair': pair + 1, 'position': pair * 2 + index, 'side': side}
|
|
for pair, sides in enumerate(PROFILE['pair_order']) for index, side in enumerate(sides)]
|
|
|
|
|
|
def case_budget_ms(scale, name):
|
|
if scale == '10x' and name == 'map-page':
|
|
return PROFILE['first_map_page_10x_ms']
|
|
return PROFILE['budgets_ms'][scale]
|