Skip to content

Commit 6a37027

Browse files
committed
Merge branch 'wct/refactor' of https://github.com/TuringLang/Libtask.jl into wct/refactor
2 parents 1c8f77d + 8e7f784 commit 6a37027

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

perf/benchmark.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ function benchmark_driver!(f, x...; f_displayname=string(f))
1414
@btime $f($(x)...)
1515
GC.gc()
1616

17-
# print(" Run TapedFunction:")
18-
# @btime $tf($(x)...)
19-
# GC.gc()
20-
2117
print(" Run TapedTask: ")
2218
x = (x[1:(end - 1)]..., produce)
2319
# show the number of produce calls inside `f`
@@ -105,20 +101,4 @@ end
105101
xs = (randn(10, 10), randn(10, 10), randn(10), rand(10))
106102
benchmark_driver!(neural_net, xs...)
107103

108-
####################################################################
109-
110-
println("======= breakdown benchmark =======")
111-
112-
x = rand(100000)
113-
tf = Libtask.TapedFunction(ackley, x, nothing)
114-
tf(x, nothing);
115-
idx = findlast((x) -> isa(x, Libtask.Instruction), tf.tape)
116-
ins = tf.tape[idx]
117-
b = ins.input[1]
118-
119-
@show length(ins.input)
120-
@btime map(x -> Libtask._lookup(tf, x), ins.input)
121-
@btime Libtask._lookup(tf, b)
122-
@btime tf.binding_values[b]
123-
124104
println("done")

0 commit comments

Comments
 (0)