Skip to content

Commit

Permalink
Add Rope and GaussLegendre benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold authored Dec 4, 2024
1 parent b5e5113 commit faaecf3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec = (
line = Line(Point(0, 0, 0), Point(1, 1, 1)),
plane = Plane(Point(0, 0, 0), Vec(0, 0, 1)),
ray = Ray(Point(0, 0, 0), Vec(0, 0, 1)),
rope = Rope([Point(t, t, t) for t in 1:32]...),
triangle = Triangle(Point(1, 0, 0), Point(0, 1, 0), Point(0, 0, 1)),
tetrahedron = let
a = Point(0, 3, 0)
Expand All @@ -64,6 +65,7 @@ SUITE["Specializations/Scalar GaussLegendre"] = let s = BenchmarkGroup()
s["Line"] = @benchmarkable integral($spec.f_exp, $spec.g.line, $spec.rule_gl)
s["Plane"] = @benchmarkable integral($spec.f_exp, $spec.g.plane, $spec.rule_gl)
s["Ray"] = @benchmarkable integral($spec.f_exp, $spec.g.ray, $spec.rule_gl)
s["Rope"] = @benchmarkable integral($spec.f, $spec.g.rope, $spec.rule_gl)
s["Triangle"] = @benchmarkable integral($spec.f, $spec.g.triangle, $spec.rule_gl)
s["Tetrahedron"] = @benchmarkable integral($spec.f, $spec.g.tetrahedron, $spec.rule_gl)
s
Expand All @@ -82,5 +84,14 @@ SUITE["Differentials"] = let s = BenchmarkGroup()
s
end

############################################################################################
# Integration Rules
###########################################################################################

SUITE["Rules"] = let s = BenchmarkGroup()
s["GaussLegendre"] = @benchmarkable GaussLegendre($1000)
s
end

#tune!(SUITE)
#run(SUITE, verbose=true)

0 comments on commit faaecf3

Please sign in to comment.