Skip to content

Commit 79d16d8

Browse files
authored
Remove unused var from fannkuch (#123)
This `check` var was initialized and incremented, but never used, and played no role in returning the correct result. Nor does dropping it have any meaningful impact on the benchmark result.
1 parent 2727751 commit 79d16d8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pyperformance/data-files/benchmarks/bm_fannkuch/run_benchmark.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@ def fannkuch(n):
1616
max_flips = 0
1717
m = n - 1
1818
r = n
19-
check = 0
2019
perm1 = list(range(n))
2120
perm = list(range(n))
2221
perm1_ins = perm1.insert
2322
perm1_pop = perm1.pop
2423

2524
while 1:
26-
if check < 30:
27-
check += 1
28-
2925
while r != 1:
3026
count[r - 1] = r
3127
r -= 1

0 commit comments

Comments
 (0)