Skip to content

Commit

Permalink
Add constructing time for Dual in bench
Browse files Browse the repository at this point in the history
  • Loading branch information
xukai92 committed Jul 15, 2017
1 parent 78019cb commit 0f05d3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchmarks/optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ optRes *= "List realpart: $t_list\n"



optRes *= "Constructing Dual numbers: \n"

t_dualnumbers = @elapsed for _ = 1:(44*2000*5) ForwardDiff.Dual(1.1, dps...) end

optRes *= "44*2000*5 times: $t_dualnumbers\n"


include(Pkg.dir("Turing")*"/benchmarks/benchmarkhelper.jl")
Expand Down

0 comments on commit 0f05d3d

Please sign in to comment.