Skip to content

Commit e0f182a

Browse files
committed
add benchmark group for Gabor and LogGabor
1 parent 2dbafa6 commit e0f182a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

benchmark/benchmarks.jl

+26
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,29 @@ let grp = SUITE["ROF"]
6868
end
6969
end
7070
end
71+
72+
SUITE["Gabor"] = BenchmarkGroup()
73+
let grp = SUITE["Gabor"]
74+
for sz in ((19, 19), (256, 256), (512, 512))
75+
out = Matrix{ComplexF64}(undef, sz)
76+
kern = Kernel.Gabor(sz, 2, 0)
77+
grp["Gabor_ComplexF64"*"_"*sz2str(sz)] = @benchmarkable copyto!($out, $kern)
78+
79+
out = Matrix{ComplexF32}(undef, sz)
80+
kern = Kernel.Gabor(sz, 2.0f0, 0.0f0)
81+
grp["Gabor_ComplexF32"*"_"*sz2str(sz)] = @benchmarkable copyto!($out, $kern)
82+
end
83+
end
84+
85+
SUITE["LogGabor"] = BenchmarkGroup()
86+
let grp = SUITE["LogGabor"]
87+
for sz in ((19, 19), (256, 256), (512, 512))
88+
out = Matrix{ComplexF64}(undef, sz)
89+
kern = Kernel.LogGabor(sz, 1/6, 0)
90+
grp["LogGabor_ComplexF64"*"_"*sz2str(sz)] = @benchmarkable copyto!($out, $kern)
91+
92+
out = Matrix{ComplexF32}(undef, sz)
93+
kern = Kernel.LogGabor(sz, 1.0f0/6, 0.0f0)
94+
grp["LogGabor_ComplexF32"*"_"*sz2str(sz)] = @benchmarkable copyto!($out, $kern)
95+
end
96+
end

0 commit comments

Comments
 (0)