mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-01-02 13:03:13 +00:00
feat: add explicit experiment type to experiment config to ease analysis
This commit is contained in:
parent
0d08814929
commit
a0e4181123
@ -61,6 +61,9 @@ CodexDisseminationExperiment = IteratedExperiment[
|
||||
|
||||
|
||||
class CodexExperimentConfig(ExperimentBuilder[CodexDisseminationExperiment]):
|
||||
# Having this here makes it easier to analyse mixed logs later
|
||||
experiment_type: str = "codex_static_dissemination"
|
||||
|
||||
experiment_set_id: str = Field(
|
||||
description="Identifies the group of experiment repetitions", default="unnamed"
|
||||
)
|
||||
|
||||
@ -62,6 +62,9 @@ DelugeDisseminationExperiment = IteratedExperiment[
|
||||
|
||||
|
||||
class DelugeExperimentConfig(ExperimentBuilder[DelugeDisseminationExperiment]):
|
||||
# Having this here makes it easier to analyse mixed logs later
|
||||
experiment_type: str = "deluge_static_dissemination"
|
||||
|
||||
experiment_set_id: str = Field(
|
||||
description="Identifies the group of experiment repetitions", default="unnamed"
|
||||
)
|
||||
|
||||
@ -58,7 +58,13 @@ class OutputManager(AbstractContextManager):
|
||||
|
||||
|
||||
class FSOutputManager(OutputManager):
|
||||
"""Simple :class:`OutputManager` which writes directly into the file system."""
|
||||
"""Simple :class:`OutputManager` which writes directly into the file system.
|
||||
|
||||
The current implementation is very simple, and might end up keeping a lot of open files.
|
||||
Since there's locality in th logs, we can make this better without making it slower by just
|
||||
bounding the number of open files and juggling them as an LRU cache of sorts,
|
||||
but for now just make sure your limits are big enough.
|
||||
"""
|
||||
|
||||
def __init__(self, root: Path) -> None:
|
||||
self.root = root
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user