Skip to content

Commit 05238b2

Browse files
Add BézierCurve to benchmarks (#124)
* Add Bézier entry * Missing comma, added newline * Make item implicitly Unitful * Make test item explicit to avoid reference errors * Formatting * Reformat range * Apply format suggestion Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c677cd5 commit 05238b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmark/benchmarks.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ rules = (
1919
(name = "HAdaptiveCubature", rule = HAdaptiveCubature(), N = 500)
2020
)
2121
geometries = (
22+
(name = "Meshes.BezierCurve",
23+
item = BezierCurve([Point(t, sin(t), 0.0) for t in range(-π, π, length = 361)])),
2224
(name = "Meshes.Segment", item = Segment(Point(0, 0, 0), Point(1, 1, 1))),
2325
(name = "Meshes.Sphere", item = Sphere(Point(0, 0, 0), 1.0))
2426
)
@@ -35,7 +37,7 @@ end
3537
# Differentials
3638
############################################################################################
3739

38-
sphere = geometries[2].item
40+
sphere = Sphere(Point(0, 0, 0), 1.0)
3941
differential = MeshIntegrals.differential
4042

4143
SUITE["Differentials"] = let s = BenchmarkGroup()

0 commit comments

Comments
 (0)