Skip to content

Commit 5295cc7

Browse files
committed
benchmarks: modularize
1 parent 37c89d7 commit 5295cc7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

benchmark/benchmarks.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ SUITE["basic"]["@py"]["pydict"]["pydel"] = @benchmarkable test_atpy(Val(true))
5252

5353

5454
include("gcbench.jl")
55+
using .GCBench: append_lots
56+
5557
SUITE["gc"]["append_and_full_gc"] = @benchmarkable GC.gc(true) setup=(append_lots())

benchmark/gcbench.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using PythonCall, Test
1+
module GCBench
2+
3+
using PythonCall
24

35
function append_lots(iters=100 * 1024, size=1596)
46
v = pylist()
@@ -7,3 +9,5 @@ function append_lots(iters=100 * 1024, size=1596)
79
end
810
return v
911
end
12+
13+
end

0 commit comments

Comments
 (0)