We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8fd8a commit ae81816Copy full SHA for ae81816
turbopack/scripts/analyze_cache_effectiveness.py
@@ -47,7 +47,7 @@ def avg_execution_time_ns(self) -> int:
47
MEASUREMENT_OVERHEAD = 750 # OVerhead implicit in the reported duration
48
if self.executions == 0:
49
return 0
50
- return (self.duration_ns - MEASUREMENT_OVERHEAD * self.executions) // self.executions
+ return max(0, (self.duration_ns - MEASUREMENT_OVERHEAD * self.executions) // self.executions)
51
52
53
def parse_duration(duration_dict: Dict) -> int:
0 commit comments