@@ -68,3 +68,29 @@ let grp = SUITE["ROF"]
68
68
end
69
69
end
70
70
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