File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -8,26 +8,21 @@ function benchmark_driver!(f, x...; f_displayname=string(f))
8
8
x = (x... , nothing )
9
9
10
10
println (" benchmarking $(f_displayname) ..." )
11
- tf = Libtask. TapedFunction ( f, x... )
11
+ tf = Libtask. TapedTask ( nothing , f, x... )
12
12
13
13
print (" Run Original Function:" )
14
14
@btime $ f ($ (x). .. )
15
15
GC. gc ()
16
16
17
- print (" Run TapedFunction:" )
18
- @btime $ tf ($ (x). .. )
19
- GC. gc ()
20
-
21
- ctf = Libtask. compile (tf)
22
- print (" Run TapedFunction (compiled):" )
23
- @btime $ ctf ($ (x). .. )
24
- GC. gc ()
17
+ # print(" Run TapedFunction:")
18
+ # @btime $tf($(x)...)
19
+ # GC.gc()
25
20
26
21
print (" Run TapedTask: " )
27
22
x = (x[1 : (end - 1 )]. .. , produce)
28
23
# show the number of produce calls inside `f`
29
24
function f_task (f, x; verbose= false )
30
- tt = TapedTask (f, x... )
25
+ tt = TapedTask (nothing , f, x... )
31
26
c = 0
32
27
while consume (tt) != = nothing
33
28
c += 1
You can’t perform that action at this time.
0 commit comments