Fix baseline proposal sampling
This commit is contained in:
parent
8ebb78a71d
commit
fd4759096e
1 changed files with 3 additions and 2 deletions
|
|
@ -326,12 +326,13 @@ def _benchmark(root: Path, node_count: int, samples: int, cold_samples: int) ->
|
|||
def register() -> dict[str, object]:
|
||||
nonlocal registration_counter
|
||||
registration_counter += 1
|
||||
proposal_node = _node_id(node_count - registration_counter)
|
||||
return store.register(
|
||||
f"benchmark-{registration_counter:03d}",
|
||||
[
|
||||
{
|
||||
"operation": "update",
|
||||
"node_id": target,
|
||||
"node_id": proposal_node,
|
||||
"metadata": {
|
||||
"summary": (
|
||||
"Synthetic measurement node updated only inside a benchmark proposal."
|
||||
|
|
@ -342,7 +343,7 @@ def _benchmark(root: Path, node_count: int, samples: int, cold_samples: int) ->
|
|||
],
|
||||
)
|
||||
|
||||
registration_samples = min(samples, 10)
|
||||
registration_samples = min(samples, 10, node_count)
|
||||
operations["changeset_register"], registered = _measure(
|
||||
register,
|
||||
samples=registration_samples,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue