INNER CODE UNIT · Python

__init__

duckduckgo/Android · build-benchmarks/run-benchmark.py:26

    def __init__(self, scenario: str, sample: str, mean: float, median: float, std_dev: float, data: List[float]):
        self.scenario = scenario
        self.sample = sample
        self.mean = mean
        self.median = median
        self.std_dev = std_dev
        self.data = data
        self.min = min(data) if data else 0
        self.max = max(data) if data else 0


def get_repo_root() -> Path:
    """Get the repository root directory (parent of build-benchmarks)."""
    # Get the directory where this script is located
    script_dir = Path(__file__).resolve().parent
    # The script is in build-benchmarks, so parent is repo root
    return script_dir.parent

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…