1 parent 5e18ff5 commit 44f9f02Copy full SHA for 44f9f02
1 file changed
bin/wfbench
@@ -186,7 +186,7 @@ class CPUBenchmark:
186
return [None, None]
187
188
total_mem = f"{self.total_mem}B" if self.total_mem else f"{100.0 / os.cpu_count()}%"
189
- cpu_work_per_thread = int(1000000 * self.work / (16384 * self.cpu_threads)) if self.cpu_threads != 0 else int32_max ** 2
+ cpu_work_per_thread = int(1000000 * self.work / (self.cpu_threads)) if self.cpu_threads != 0 else int32_max ** 2
190
cpu_samples = min(cpu_work_per_thread, int32_max)
191
cpu_ops = (cpu_work_per_thread + int32_max - 1) // int32_max
192
if cpu_ops > int32_max:
0 commit comments