Skip to content

Commit 3c441fa

Browse files
committed
add benchmark group for solve_ROF_PD
1 parent a9ed869 commit 3c441fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

benchmark/benchmarks.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using ImageFiltering, ImageCore
22
using PkgBenchmark
33
using BenchmarkTools
44
using Statistics: quantile, mean, median!
5+
using ImageFiltering.Models
56

67
function makeimages(sz)
78
imgF32 = rand(Float32, sz)
@@ -56,3 +57,14 @@ let grp = SUITE["imfilter"]
5657
end
5758
end
5859
end
60+
61+
62+
SUITE["ROF"] = BenchmarkGroup()
63+
let grp = SUITE["ROF"]
64+
for sz in ((100, 100), (2048, 2048), (2048,), (100, 100, 100))
65+
for (aname, img) in makeimages(sz)
66+
szstr = sz2str(sz)
67+
grp["PrimalDual"*"_"*aname*"_"*szstr] = @benchmarkable solve_ROF_PD($img, 0.1, 10)
68+
end
69+
end
70+
end

0 commit comments

Comments
 (0)