Skip to content

Commit 1e819f1

Browse files
committed
Add the gc benchmarks to the MANIFEST file
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
1 parent fd22d5a commit 1e819f1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pyperformance/data-files/benchmarks/MANIFEST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ async_tree_memoization <local:async_tree>
1010
concurrent_imap <local>
1111
coroutines <local>
1212
coverage <local>
13+
gc_traversal <local>
14+
gc_collect <local>
1315
generators <local>
1416
chameleon <local>
1517
chaos <local>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def benchamark_collection(loops, cycles, links):
5353
collected = gc.collect()
5454
total_time += pyperf.perf_counter() - t0
5555

56-
assert collected >= cycles * (links + 1)
56+
assert collected is None or collected >= cycles * (links + 1)
5757

5858
return total_time
5959

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def benchamark_collection(loops, n_levels):
2626
collected = gc.collect()
2727
total_time += pyperf.perf_counter() - t0
2828

29-
assert collected == 0
29+
assert collected is None or collected == 0
3030

3131
return total_time
3232

0 commit comments

Comments
 (0)