We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 863c514 + 484f8ea commit d74c567Copy full SHA for d74c567
src/groups.jl
@@ -305,10 +305,28 @@ end
305
306
const benchmark_stack = []
307
308
+"""
309
+ @benchmarkset "title" begin ... end
310
+
311
+Create a benchmark set, or multiple benchmark sets if a `for` loop is provided.
312
313
+# Examples
314
315
+```julia
316
+@benchmarkset "suite" for k in 1:5
317
+ @case "case \$k" rand(\$k, \$k)
318
+end
319
+```
320
321
macro benchmarkset(title, ex)
322
esc(benchmarkset_m(title, ex))
323
end
324
325
326
+ @case title <expr to benchmark> [setup=<setup expr>]
327
328
+Mark an expression as a benchmark case. Must be used inside [`@benchmarkset`](@ref).
329
330
macro case(title, xs...)
331
esc(:($(Symbol("#suite#"))[$title] = @benchmarkable $(xs...)))
332
0 commit comments