From a04b3ba2c7090b140b897da5e8c09410f020b6bb Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Thu, 19 Dec 2024 14:28:00 -0500 Subject: [PATCH] Generate geometry names --- benchmark/benchmarks.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmark/benchmarks.jl b/benchmark/benchmarks.jl index 902d186d..847895f7 100644 --- a/benchmark/benchmarks.jl +++ b/benchmark/benchmarks.jl @@ -67,10 +67,12 @@ spec = ( SUITE["Specializations"] = let s = BenchmarkGroup() s[] for r in spec.rules, geometry in spec.geometries - s[geometry.name, r.name] = @benchmarkable integral($spec.f, geometry, r.rule) + geometry_name = nameof(typeof(geometry.name)) + s[geometry_name, r.name] = @benchmarkable integral($spec.f, geometry, r.rule) end for r in spec.rules, geometry in spec.geometries_exp - s[geometry.name, r.name] = @benchmarkable integral($spec.f_exp, geometry, r.rule) + geometry_name = nameof(typeof(geometry.name)) + s[geometry_name, r.name] = @benchmarkable integral($spec.f_exp, geometry, r.rule) end s end