From ef7c988bfecca2f0580a4aefdf448a2b4ce60b1d Mon Sep 17 00:00:00 2001 From: t Date: Thu, 5 Nov 2026 19:36:59 +0000 Subject: [PATCH] Add benchmark results from a local run Populates the Benchmarks docs page, which showed 'No results yet'. Origin: local run on an AMD RYZEN AI MAX+ 395, not CI (environment.origin). The results README no longer says local runs are never committed. Agent-Harness: Claude Code 2.1.318 Agent-Model: claude-sonnet-5-5 Agent-Session: 43e03fde-3384-4386-bae9-03e81f19ba7c Agent-Review: unreviewed Co-authored-by: Claude Code --- benchmarks/results/README.md | 5 +- benchmarks/results/accuracy_convdiff.toml | 64 +++++++++++++++++++++++ benchmarks/results/assembly_cost.toml | 54 +++++++++++++++++++ benchmarks/results/construction.toml | 46 ++++++++++++++++ 4 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 benchmarks/results/accuracy_convdiff.toml create mode 100644 benchmarks/results/assembly_cost.toml create mode 100644 benchmarks/results/construction.toml diff --git a/benchmarks/results/README.md b/benchmarks/results/README.md index a3afac6d..752a83b2 100644 --- a/benchmarks/results/README.md +++ b/benchmarks/results/README.md @@ -1,2 +1,3 @@ -Results files written by the benchmark scripts. The committed ones come from the Benchmarks workflow (their -`environment.origin` names the run); results of local runs are not committed. +Results files written by the benchmark scripts. The committed ones come from the Benchmarks workflow or, until that +workflow can open its pull request, from a local run; either way their `environment.origin` names the run, and the +page states it beside each table. diff --git a/benchmarks/results/accuracy_convdiff.toml b/benchmarks/results/accuracy_convdiff.toml new file mode 100644 index 00000000..aedea10d --- /dev/null +++ b/benchmarks/results/accuracy_convdiff.toml @@ -0,0 +1,64 @@ +benchmark = "(a) accuracy per degree of freedom, convdiff2" +description = "max nodal error at t = 30 against the steady solution; FEM P1 Galerkin vs MethodOfLines (default upwind advection), same nodes" +fem_solver = "DFBDF(nlsolve = NLNewton(new_W_dt_cutoff = 0)) on the DAEProblem from FEMDiscretization; reltol = 1.0e-9, abstol = 1.0e-11" +mol_solver = "DFBDF() on the DAEProblem from MethodOfLines; reltol = 1.0e-9, abstol = 1.0e-11" + +[environment] +cpu = "AMD RYZEN AI MAX+ 395 w/ Radeon 8060S" +cpu_threads = 32 +date = "2026-11-05T19:31:57.432Z" +git_sha = "d973585c8462cf3bf7db85cf851718bc9ff84943" +julia = "1.12.1" +julia_threads = 1 +origin = "local run, not CI" +os = "Linux x86_64-linux-gnu" + + [environment.packages] + Dates = "1.11.0" + DomainSets = "0.8.3" + Ferrite = "1.7.0" + FiniteElementMethod = "0.1.0 (path, see git_sha)" + LinearAlgebra = "1.12.0" + MethodOfLines = "1.6.0" + ModelingToolkit = "11.46.1" + OrdinaryDiffEqBDF = "2.4.14" + PDEBase = "0.1.41" + PDESystemLibrary = "0.1.11" + Pkg = "1.12.0" + Printf = "1.11.0" + SciMLBase = "3.58.0" + Symbolics = "7.48.0" + TOML = "1.0.3" + +[[rows]] +cells = 16 +fem_error = 0.0028721518407403 +fem_ndofs = 17 +fem_rate = nan +mol_error = 0.047520850885127364 +mol_ndofs = 17 +mol_rate = nan +[[rows]] +cells = 32 +fem_error = 0.0007117829922109742 +fem_ndofs = 33 +fem_rate = 2.0126226557648152 +mol_error = 0.025378268127156156 +mol_ndofs = 33 +mol_rate = 0.9049670489345625 +[[rows]] +cells = 64 +fem_error = 0.0001775604447812884 +fem_ndofs = 65 +fem_rate = 2.003127232930541 +mol_error = 0.01314611851901637 +mol_ndofs = 65 +mol_rate = 0.9489567227696004 +[[rows]] +cells = 128 +fem_error = 4.43840318951616e-5 +fem_ndofs = 129 +fem_rate = 2.0001975930355846 +mol_error = 0.0066941791894175595 +mol_ndofs = 129 +mol_rate = 0.973657822223135 diff --git a/benchmarks/results/assembly_cost.toml b/benchmarks/results/assembly_cost.toml new file mode 100644 index 00000000..982bc025 --- /dev/null +++ b/benchmarks/results/assembly_cost.toml @@ -0,0 +1,54 @@ +benchmark = "(b) assembly and residual cost against hand-written Ferrite" +description = "100×100 P1 triangles, in place, minimum of 10 runs after warm-up" + +[environment] +cpu = "AMD RYZEN AI MAX+ 395 w/ Radeon 8060S" +cpu_threads = 32 +date = "2026-11-05T19:32:07.901Z" +git_sha = "d973585c8462cf3bf7db85cf851718bc9ff84943" +julia = "1.12.1" +julia_threads = 1 +origin = "local run, not CI" +os = "Linux x86_64-linux-gnu" + + [environment.packages] + Dates = "1.11.0" + DomainSets = "0.8.3" + Ferrite = "1.7.0" + FiniteElementMethod = "0.1.0 (path, see git_sha)" + LinearAlgebra = "1.12.0" + MethodOfLines = "1.6.0" + ModelingToolkit = "11.46.1" + OrdinaryDiffEqBDF = "2.4.14" + PDEBase = "0.1.41" + PDESystemLibrary = "0.1.11" + Pkg = "1.12.0" + Printf = "1.11.0" + SciMLBase = "3.58.0" + Symbolics = "7.48.0" + TOML = "1.0.3" + +[features] +LinearBlock = true +LinearCache = true +NonlinearOperator = true +StructuralZero = true + +[[rows]] +case = "case (i), M, K, F, volume terms" +generated_ms = 4.60524 +hand_ms = 2.89195 +max_relerr = 0.0 +ratio = 1.5924341707152614 +[[rows]] +case = "case (i), M, K, F with Neumann and Robin facets" +generated_ms = 4.6863030000000006 +hand_ms = 2.880379 +max_relerr = 4.771935113921784e-17 +ratio = 1.6269744363502163 +[[rows]] +case = "case (iii), residual and Jacobian" +generated_ms = 3.0331669999999997 +hand_ms = 2.363815 +max_relerr = 1.6546612992344698e-16 +ratio = 1.2831659838016087 diff --git a/benchmarks/results/construction.toml b/benchmarks/results/construction.toml new file mode 100644 index 00000000..970a8d51 --- /dev/null +++ b/benchmarks/results/construction.toml @@ -0,0 +1,46 @@ +benchmark = "(c) problem construction time, numeric path against ModelingToolkit codegen" +description = "discretize(pdesys, FEMDiscretization(Ω, t)) for a P1 heat equation with Dirichlet conditions, minimum of 3 calls after a first call" + +[cold_first_call] +seconds = 21.529622717 +unknowns = 2500 + +[environment] +cpu = "AMD RYZEN AI MAX+ 395 w/ Radeon 8060S" +cpu_threads = 32 +date = "2026-11-05T19:32:45.373Z" +git_sha = "d973585c8462cf3bf7db85cf851718bc9ff84943" +julia = "1.12.1" +julia_threads = 1 +origin = "local run, not CI" +os = "Linux x86_64-linux-gnu" + + [environment.packages] + Dates = "1.11.0" + DomainSets = "0.8.3" + Ferrite = "1.7.0" + FiniteElementMethod = "0.1.0 (path, see git_sha)" + LinearAlgebra = "1.12.0" + MethodOfLines = "1.6.0" + ModelingToolkit = "11.46.1" + OrdinaryDiffEqBDF = "2.4.14" + PDEBase = "0.1.41" + PDESystemLibrary = "0.1.11" + Pkg = "1.12.0" + Printf = "1.11.0" + SciMLBase = "3.58.0" + Symbolics = "7.48.0" + TOML = "1.0.3" + +[mtk_codegen] +available = false +message = "ArgumentError: codegen = :mtk is not supported; use the default codegen = :numeric" +status = "not available today: codegen = :mtk is reserved until the upstream blockers of spec §7.7 land" +upstream_blockers = ["ModelingToolkit #5121", "ModelingToolkit #5312", "ModelingToolkit #5327", "ModelingToolkit #5325", "ModelingToolkit #5328", "SciMLBase #1602"] + +[[rows]] +numeric_s = 0.017830579 +unknowns = 2500 +[[rows]] +numeric_s = 0.092028731 +unknowns = 10000