Skip to content
Get started

Poisson comparison with FEniCSx

In the original campaign below, Eqiora and FEniCSx matched the independent accuracy reference on all four tested meshes. Eqiora was slower in ordinary repeated execution at every level. At 32 cells per axis, median execution took 78.495 ms in Eqiora and 0.832562 ms in FEniCSx, about 94.3 times longer for Eqiora in this measurement.

This is one observational campaign on one machine, not a hardware-normalized stable baseline or a general ranking of the tools. It uses an optimized development build of Eqiora whose distribution version is 0.1.5; the published 0.1.5 release does not contain this workflow.

A second development build reuses admission checks during live scalar execution. In eight matched pairs against the preceding build, Eqiora’s ordinary execution medians were lower at all four mesh levels. These are separate observations; the earlier comparison below remains unchanged.

Each entry is a candidate/baseline wall-time ratio within a matched pair. Values under one mean less time for the candidate. Ranges are observed ranges, not confidence intervals. FEniCSx is the unchanged environmental control.

Cells per axis Eqiora: median [range] FEniCSx: median [range]
4 0.788 [0.769–0.816] 0.985 [0.960–1.007]
8 0.843 [0.821–0.870] 1.020 [0.952–1.069]
16 0.892 [0.860–0.907] 1.013 [0.977–1.044]
32 0.924 [0.891–0.938] 1.001 [0.980–1.049]

The same fixed schedule used two excluded exploratory campaigns and eight matched pairs with alternating launch order, on the same shared host and pinned CPU. Each campaign used four meshes, two warmups and seven timed calls with unchanged independent accuracy gates and solver controls. All eighteen campaigns in the completed attempt passed. The eight pairs are the comparison units; individual calls are not independent replicates.

An earlier attempt stopped after its baseline exploratory campaign: the existing installed-wheel isolation check rejected the candidate environment’s location inside the harness root before candidate numerical work. That attempt is retained. A fresh sibling environment corrected the installation location, and the unchanged fixed-budget protocol ran in a new output directory. No equations, accuracy reference, tolerances or solver controls changed, and no completed candidate campaign was replaced.

Both revisions used authenticated optimized wheels with the same release profile, including its package overrides. The source, wheel, build-record provenance, original-report digests, every timing sample, accuracy summaries, CPU observations, launch-order summaries and drift are retained in the admission-reuse measurement record. This descriptive shared-host comparison establishes no stable timing guarantee, universal speedup, cylinder-speed target or short-Run non-regression target.

Follow-up: retaining the original assembled equations

Section titled “Follow-up: retaining the original assembled equations”

A later development build keeps the original assembled system for live Result acceptance. It preserves independent validation when reopening an artifact. In eight matched pairs, its ordinary execution medians were lower at every mesh level. At 32 cells per axis, the median candidate/baseline ratio was 0.584, with a range of 0.579–0.597 across the eight pairs.

Each table entry is an Eqiora candidate/baseline wall-time ratio, comparing the two revisions within a pair. Values under one mean less time for the candidate; these ranges are observed ranges, not confidence intervals.

Cells per axis Ratio: median [range]
4 0.711 [0.705–0.719]
8 0.651 [0.634–0.654]
16 0.608 [0.598–0.647]
32 0.584 [0.579–0.597]

The schedule was fixed before observations: one exploratory campaign per revision, then eight pairs with alternating launch order. Each campaign used the same four meshes, independent accuracy gates, solver controls, two warmups and seven timed calls. All eighteen campaigns passed. Exploratory timings are excluded from the paired summary; the eight pairs, not individual calls, are the comparison units. No failed campaign was replaced or selected away.

Both revisions used authenticated optimized wheels built with Rust 1.89 and the same release settings. They ran on the same CPU and software environments as the original comparison. CPU load was recorded without an idle threshold; governor, boost and affinity settings were checked without changing the host. This remains a descriptive shared-host comparison. It establishes neither a stable performance guarantee nor the separate cylinder speed or short-Run non-regression targets.

The separate exploratory diagnostic recorded one scalar finalization in the candidate and two in the baseline. At the finest level, candidate finalization took 19.509 ms and reference linear solve took 0.081 ms. Another 25.989 ms was reported as solve self time; its internal costs remain unattributed. Diagnostic spans are separate executions, not a partition of the ordinary sample medians.

The matched-revision record retains source and wheel identities, every timing sample, CPU observations, launch-order summaries, drift, accuracy summaries and diagnostic spans. The original campaign below remains unchanged as a historical measurement.

Both tools solve the same dimensionless potential on a square of side L=1 mL=1\,\mathrm{m}. With physical coordinates x,yx,y, let X=x/LX=x/L and Y=y/LY=y/L:

−Δu=2π2L2sin⁡(πX)sin⁡(πY),u=0 on the boundary,uexact=sin⁡(πX)sin⁡(πY).-\Delta u=\frac{2\pi^2}{L^2}\sin(\pi X)\sin(\pi Y),\qquad u=0\text{ on the boundary},\qquad u_{\mathrm{exact}}=\sin(\pi X)\sin(\pi Y).

The sine arguments are dimensionless and the forcing has units m−2\mathrm{m}^{-2}. The shipped model declares wave number in m−1\mathrm{m}^{-1} and source scale in m−2\mathrm{m}^{-2}; the driver binds them to π/L\pi/L and 2π2/L22\pi^2/L^2.

Both use uniform quadrilateral Q1 elements, real binary64 arithmetic and the same two-point tensor Gauss stiffness/load rule. The driver checks the actual FEniCSx quadrature points and weights. Eqiora uses its installed ordinary Python compile, mesh, resolve and run APIs with Eqiora.Scalar; FEniCSx uses its ordinary Python and PETSc interfaces.

The solver is BiCGStab, with no preconditioner, zero initial guess, relative residual tolerance 1e-12, absolute tolerance 1e-14, and a limit of 10,000 iterations. Every solve took one iteration. The sine load is a single discrete eigenmode, so this does not measure general Krylov convergence. Each tool passed an independently recomputed true-residual check.

Eqiora eliminates prescribed boundary coefficients; FEniCSx retains identity boundary rows. At the finest level, both have 1,089 total and 961 free coefficients, but their stored systems have 961 and 1,089 rows respectively. The zero data and initial guess give the same effective free problem.

The continuous Q1 reconstruction errors agree with the existing 80-digit analytic discrete reference within its pre-existing comparison allowance. The observed refinement orders range from 1.992 to 1.999 in both tools. The allowance is a regression/conformance check, not a certified bound on FEniCSx floating-point arithmetic. Agreement between the two tools is not the accuracy oracle.

The tables round values for display; the measurement record retains full precision. Here N is the number of cells per axis and errors are in metres.

N Eqiora FEniCSx
4 3.0180e-2 3.0180e-2
8 7.5872e-3 7.5872e-3
16 1.8997e-3 1.8997e-3
32 4.7511e-4 4.7511e-4

The potential is dimensionless; its L2 norm over a two-dimensional region in metres has unit metres. The analytic reference explains the derivation. The earlier accuracy-only smoke report used a debug wheel and did not establish timing results. The tables here use the subsequent optimized campaign.

These wall times cover fresh numerical assembly, a zero-start accepted solve and primary field return, retaining only the mesh and model/forms. No previous matrix, factors, preconditioner or Result is supplied for reuse. Error integration, output inspection, protocol checks, Result destruction and file writes are outside the clock. FEniCSx’s solve bracket includes its effective solver-policy and summary queries before native cleanup.

Each row comes from seven uninstrumented samples after two warmups. MAD is the median absolute deviation. The cold call is the first ordinary execution in that child process, before the separate diagnostic execution and the warmups.

Median and MAD below are both in milliseconds.

N / tool Median ± MAD
4 / Eqiora 4.13 ± 0.0130
4 / FEniCSx 0.234 ± 0.0064
8 / Eqiora 7.71 ± 0.0071
8 / FEniCSx 0.277 ± 0.0052
16 / Eqiora 21.6 ± 0.0418
16 / FEniCSx 0.394 ± 0.0034
32 / Eqiora 78.5 ± 0.0453
32 / FEniCSx 0.833 ± 0.0078

The first ordinary execution, in milliseconds:

N Tool Cold call
4 Eqiora 5.286
4 FEniCSx 245.583
8 Eqiora 8.986
8 FEniCSx 2.499
16 Eqiora 23.363
16 FEniCSx 3.104
32 Eqiora 83.012
32 FEniCSx 2.445

These are single cold observations, not seven-sample medians. Eqiora’s mesh scope includes GeometryGraph construction and mesh resolution/generation, including its geometry checks. FEniCSx creates a unit-square mesh. Eqiora’s preparation covers compile and resolve; FEniCSx prepares its function space, boundary data and forms, including compilation in a fresh JIT cache for each child. Preparation wall time includes compiler-child work; process CPU readings in the measurement record exclude that child CPU. Imports are recorded separately and excluded from these clocks.

Mesh and preparation times below are in milliseconds.

N Tool Mesh Prep
4 Eqiora 0.759 14.57
4 FEniCSx 421.2 8474
8 Eqiora 1.141 10.47
8 FEniCSx 2.732 1891
16 Eqiora 2.462 11.88
16 FEniCSx 2.789 1889
32 Eqiora 7.977 16.76
32 FEniCSx 3.597 1634

The first FEniCSx process has much larger mesh, preparation and cold-execution observations than later processes. Fresh process and JIT cache do not imply that filesystem or operating-system caches are cold. These values do not establish preparation scaling or an end-to-end speed ranking.

Linux process peak RSS is sampled immediately after the first ordinary field return, before accuracy checks and diagnostic profiling. It includes imports, mesh and preparation, so it is not operator-only memory. The separate completed child high-water mark can include JIT compiler work; it is not simultaneous aggregate process-tree memory and must not be added to or subtracted from the parent’s high-water mark.

The main process peak RSS, in KiB:

N Tool Peak RSS
4 Eqiora 65028
4 FEniCSx 135168
8 Eqiora 64176
8 FEniCSx 129408
16 Eqiora 66472
16 FEniCSx 129408
32 Eqiora 74536
32 FEniCSx 130560

FEniCSx’s separate largest completed-child peak RSS, in KiB:

N Child peak
4 130176
8 123648
16 124032
32 124416

At 32 cells per axis, Eqiora’s separate completed-child high-water mark is 42,240 KiB. Whole-child final peaks, stage snapshots and imports are retained in the measurement record; the table deliberately uses the pre-profile cold workflow snapshot rather than the final process peak.

Diagnostic phases are different measurements

Section titled “Diagnostic phases are different measurements”

Each tool performs one additional instrumented execution after its cold call, before the ordinary warmups and samples. Those diagnostics can warm caches. They are neither the cold call nor a partition of the unprofiled median above. The tools’ phase boundaries differ, so these numbers must not be used for cross-tool phase speed ratios.

The one-off setup observations are listed under Mesh and preparation. The additional instrumented assembly and linear-solve observations follow for every mesh level, in milliseconds rounded to four significant figures:

NToolAsmLinear
4Eqiora0.78620.01335
4FEniCSx0.26270.05473
8Eqiora2.5180.01207
8FEniCSx0.32590.06494
16Eqiora9.4020.02682
16FEniCSx0.3890.05453
32Eqiora38.040.08062
32FEniCSx0.92790.08926

Asm is assembly. Every Eqiora Asm entry is the inclusive total of two scalar-region finalization calls; the values are not divided by the call count. Eqiora’s exclusive solve self time, outside assembly and linear-solve children, was 4.086 ms at N=4, 5.169 ms at N=8, 11.92 ms at N=16, 39.52 ms at N=32. These profile values do not partition the ordinary execution medians or the separately measured setup stages.

  • Eqiora assembly: two scalar-region finalization calls, including numeric preparation, representability checks and canonical system construction.
  • Eqiora solve self: exclusive time outside its assembly and linear-solve child spans.
  • Eqiora linear: one reference-provider call.
  • FEniCSx assembly: matrix/vector allocation and assembly, lifting, ghost accumulation and boundary application.
  • FEniCSx linear: KSP allocation/configuration, zero guess, solve, true-residual acceptance and effective-policy/summary queries.

The original measured Eqiora revision finalized the system for the solve and again while accepting the Result. That revision shared its live acceptance check with the reacceptance helper and explains the two assembly calls; Result acceptance remains inside the ordinary execution timing. It does not explain the remaining exclusive solve time or the whole runtime gap.

Eqiora’s assembly span excludes some earlier mapping work. The substantial exclusive solve time identifies time outside the recorded child spans; this campaign does not identify its root cause. It would be misleading to attribute the runtime gap solely to the linear solver or invent an unmeasured cause.

The campaign ran on corgi, an AMD EPYC 7443P with one socket, 24 physical cores and 48 logical CPUs. Both tools were pinned to CPU 23 with one worker and one MPI rank; sibling CPU 47 was monitored. OpenMP, BLAS, MKL, BLIS and Rayon thread settings were one; no GPU was used. The CPU governors remained ondemand and boost remained enabled. The environment and fresh per-child JIT caches were on home-backed NFS. Start/finish load and CPU monitoring were retained. This quiet observational window does not establish a controlled, stable reference machine.

Eqiora used its reference host-serial provider and an authenticated wheel built from the profiling candidate with Rust 1.89 release settings, fat LTO, stripping and the existing per-package size optimizations. FEniCSx used DOLFINx, Basix and FFCx 0.11.0, UFL 2026.1.0 and PETSc 3.25.6 from an isolated locked conda-forge environment. Both Python interpreters were 3.13.18 and NumPy was 2.5.4. The receipt records the exact source revision, wheel digest, solved package/build lock and thread settings; the harness revision is separate from the wheel’s producer revision.

Read the predeclared protocol and reproduction commands for the mathematical, solver and measurement boundaries, and the measurement record for samples, CPU readings, identities, memory snapshots and phase inventories. This public projection normalizes filesystem prefixes and host labels; it retains the original record’s digest and leaves numerical observations unchanged.

To collect timings rather than the README’s correctness-only example, use --mode benchmark with an optimized, authenticated development wheel and a new output directory. Keep the declared levels 4 8 16 32, solver controls, affinity and thread settings. Record the actual environment and build; do not assume another machine reproduces these timings. No benchmark was rerun to write this page.

This comparison covers only 2D uniform quadrilateral Q1 Poisson at 4–32 cells per axis. Three-dimensional Poisson, elasticity, cylinder flow, MPI and GPU comparisons remain unmeasured here. It establishes neither general PDE speed, general Krylov iteration complexity nor a release-wide performance guarantee.