Skip to content

Commit

Permalink
add benchmark group for solve_ROF_PD
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed Oct 21, 2021
1 parent a9ed869 commit 3c441fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ using ImageFiltering, ImageCore
using PkgBenchmark
using BenchmarkTools
using Statistics: quantile, mean, median!
using ImageFiltering.Models

function makeimages(sz)
imgF32 = rand(Float32, sz)
Expand Down Expand Up @@ -56,3 +57,14 @@ let grp = SUITE["imfilter"]
end
end
end


SUITE["ROF"] = BenchmarkGroup()
let grp = SUITE["ROF"]
for sz in ((100, 100), (2048, 2048), (2048,), (100, 100, 100))
for (aname, img) in makeimages(sz)
szstr = sz2str(sz)
grp["PrimalDual"*"_"*aname*"_"*szstr] = @benchmarkable solve_ROF_PD($img, 0.1, 10)
end
end
end

0 comments on commit 3c441fa

Please sign in to comment.