Home | History | Annotate | Download | only in bench

Lines Matching refs:WINDOW

24 WINDOW = 5  # Moving average sliding window size.
121 if len(vals) < WINDOW: # Too few bench data points; skip.
152 if len(points) >= WINDOW:
153 moving_avgs.append(sum(points[-WINDOW:]) / WINDOW)
155 else: # For the first WINDOW-1 points, cannot calculate moving average.
158 if len(variances) >= WINDOW:
159 for i in range(WINDOW - 1):
160 # Backfills estimated variances for the first WINDOW-1 points.
161 variances[i] = variances[WINDOW - 1]