Skip to content

Commit 37c89d7

Browse files
committed
benchmarks: remove unused code
1 parent 397ef3f commit 37c89d7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

benchmark/gcbench.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
using PythonCall, Test
22

3-
# https://github.com/JuliaCI/GCBenchmarks/blob/fc288c696381ebfdef8f002168addd0ec1b08e34/benches/serial/append/append.jl
4-
macro gctime(ex)
5-
quote
6-
local prior = PythonCall.GC.SECONDS_SPENT_IN_GC[]
7-
local ret = @timed $(esc(ex))
8-
Base.time_print(stdout, ret.time * 1e9, ret.gcstats.allocd, ret.gcstats.total_time, Base.gc_alloc_count(ret.gcstats); msg="Runtime")
9-
local after = PythonCall.GC.SECONDS_SPENT_IN_GC[]
10-
println(stdout)
11-
Base.time_print(stdout, (after - prior) * 1e9; msg="Python GC time")
12-
println(stdout)
13-
ret.value
14-
end
15-
end
16-
173
function append_lots(iters=100 * 1024, size=1596)
184
v = pylist()
195
for i = 1:iters

0 commit comments

Comments
 (0)