Skip to content

Commit 5d4e630

Browse files
committed
benchmarks: give more time to GC benchmark
1 parent 5295cc7 commit 5d4e630

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

benchmark/benchmarks.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ SUITE["basic"]["@py"]["pydict"]["pydel"] = @benchmarkable test_atpy(Val(true))
5454
include("gcbench.jl")
5555
using .GCBench: append_lots
5656

57-
SUITE["gc"]["append_and_full_gc"] = @benchmarkable GC.gc(true) setup=(append_lots())
57+
SUITE["gc"]["append_and_full_gc"] = @benchmarkable(
58+
GC.gc(true),
59+
setup=(GC.gc(true); append_lots(size=159)),
60+
seconds=30,
61+
)

benchmark/gcbench.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module GCBench
22

33
using PythonCall
44

5-
function append_lots(iters=100 * 1024, size=1596)
5+
function append_lots(; iters=100 * 1024, size=1596)
66
v = pylist()
77
for i = 1:iters
88
v.append(pylist(rand(size)))

0 commit comments

Comments
 (0)