Benchmarks¶
How close each solver comes to openEMS on every example is in the solver matrix.
Run time and peak memory of each solver on a representative subset of the examples, one board per regime:
single-layer microstrip (hairpin, coupler), grounded coplanar waveguide with a via fence (rf_gcpw), a
stripline between meshed planes (rf_stripline), a via transition through an inner plane (demo_transition) and
an antenna (antenna_patch). Measured with tools/bench_solvers.py (--all runs every example) on one machine:
an Intel i7-13700K (8 performance and 8 efficiency cores, 24 threads), 31 GB RAM, an AMD Radeon RX 7800 XT
(16 GB) through CuPy and ROCm 7.
Each solver ran alone, in a process of its own, three times. The table gives the median, with the range of the
three runs in brackets where they differ by a second or more. Times are wall time for the whole run: model,
mesh, port characterisation and the solve. RAM is the process’s peak. GPU memory is what mom25d planned for
its matrix. The fastest field solver on each board is in bold (the line model is not a field solver).
mom25d fast is --mom-quads on --mom-quad-tol 60 --mom-coarsen 2 (quad cells,
coarsening).
Example |
openems |
gfdtd GPU |
gfdtd CPU |
mom25d GPU |
mom25d CPU |
mom25d fast |
line model |
Fastest |
FDTD model |
mom25d model |
mom25d fast model |
|---|---|---|---|---|---|---|---|---|---|---|---|
antenna_patch |
30 s (30–34), 0.3 GB |
9 s, 0.6 GB |
18 s (17–18), 0.4 GB |
4 s, 0.3 GB · on the CPU |
4 s, 0.3 GB |
3 s, 0.2 GB · on the CPU |
n/a |
mom25d fast |
0.42 M cells, 17920 steps |
1,391 unknowns, 11 solves, double |
466 unknowns, 9 solves, double |
demo_transition |
43 s (39–55), 0.2 GB |
6 s, 0.5 GB |
20 s (20–22), 0.4 GB |
12 s (12–13), 3.1 GB (+0.5 GPU) |
12 s (11–13), 1.6 GB |
11 s, 1.0 GB · on the CPU |
1 s, 0.1 GB |
gfdtd GPU |
0.51 M cells, 86099 steps |
4,043 unknowns, 21 solves, hybrid |
2,959 unknowns, 18 solves, double |
hairpin |
46 s (42–50), 0.2 GB |
7 s, 0.4 GB |
36 s (35–36), 0.3 GB |
6 s, 2.8 GB (+0.6 GPU) |
7 s, 1.2 GB |
3 s, 0.4 GB · on the CPU |
1 s, 0.1 GB |
mom25d fast |
0.31 M cells, 108458 steps |
4,763 unknowns, 13 solves, hybrid |
1,992 unknowns, 11 solves, double |
rf_coupler |
27 s (27–28), 0.2 GB |
5 s, 0.5 GB |
16 s (15–16), 0.4 GB |
10 s, 3.1 GB (+0.7 GPU) |
14 s (14–15), 1.9 GB |
4 s, 0.5 GB · on the CPU |
1 s, 0.1 GB |
mom25d fast |
0.59 M cells, 33184 steps |
5,864 unknowns, 20 solves, hybrid |
2,360 unknowns, 11 solves, double |
rf_gcpw |
67 s (55–67), 0.2 GB |
6 s, 0.4 GB |
35 s (34–46), 0.3 GB |
8 s (7–8), 3.1 GB (+0.5 GPU) |
9 s, 1.7 GB |
8 s, 3.1 GB · on the CPU |
1 s, 0.1 GB |
gfdtd GPU |
0.20 M cells, 161086 steps |
3,526 unknowns, 20 solves, hybrid |
1,941 unknowns, 22 solves, double |
rf_stripline |
14 s, 0.2 GB |
3 s, 0.5 GB |
7 s, 0.4 GB |
3 s, 0.2 GB · on the CPU |
3 s, 0.2 GB |
3 s, 0.2 GB · on the CPU |
1 s, 0.1 GB |
mom25d fast |
0.43 M cells, 16405 steps |
1,337 unknowns, 18 solves, double |
806 unknowns, 18 solves, double |
on the CPU: a GPU run of mom25d that factored on the CPU (the board below its GPU threshold, sim.GPU_MIN_N, or too large for the GPU); n of m on the CPU: solves that fell back to double precision on the CPU after the complex64 LU failed to precondition (the worst of the runs).

Vulkan¶
The same boards with each GPU solver through Vulkan as well (--out build/bench-vulkan --skip openems "line model" "mom25d fast"; GFDTD_BACKEND=vulkan, MOM25D_GPU=vulkan): the path for AMD cards on Windows, where CuPy has no
ROCm wheel. Same machine, RADV (Mesa 26.2) against ROCm 7, medians of three runs (gfdtd’s and mom25d’s CuPy
backends were removed in 2026-11):
Example |
gfdtd CuPy |
gfdtd Vulkan |
gfdtd CPU |
mom25d CuPy |
mom25d Vulkan |
mom25d CPU |
|---|---|---|---|---|---|---|
antenna_patch |
9 s, 0.6 GB |
9 s, 0.8 GB |
16 s |
4 s · on the CPU |
4 s · on the CPU |
4 s |
demo_transition |
6 s, 0.5 GB |
6 s, 0.7 GB |
17 s |
12 s, 3.1 GB |
10 s, 1.4 GB |
12 s |
hairpin |
7.0 s, 0.5 GB |
7.6 s, 0.6 GB |
28 s |
6 s, 2.8 GB |
5 s, 1.1 GB |
7 s |
rf_coupler |
4.7 s, 0.5 GB |
4.6 s, 0.7 GB |
14 s |
10 s, 3.1 GB |
9 s, 1.4 GB |
14 s |
rf_gcpw |
6 s, 0.4 GB |
7 s, 0.5 GB |
26 s |
9 s, 3.1 GB |
8 s, 1.4 GB |
10 s |
rf_stripline |
3 s, 0.5 GB |
3 s, 0.6 GB |
6 s |
3 s · on the CPU |
3 s · on the CPU |
3 s |
mom25d through Vulkan is the faster GPU path: 8–18 % under CuPy’s wherever the GPU factors, in half the RAM; its LU beats rocSOLVER from 4,096 unknowns up (GPU).
gfdtd through Vulkan runs within 0–9 % of CuPy, 2–4× its CPU core.

Solvers side by side¶
--solver-jobs N runs a board’s solvers N at a time, as threads of the one process (the default, 1, runs them one
after another). Measured on the same machine, 2026-11-15: each case once with --solver-jobs 1, once with 3
(--no-reuse --mom-port lumped; the line model, 0.1 s, runs in every case). Wall time for the whole run, then each
solver’s own time, one after another → side by side:
Example |
Solvers |
One after another |
Side by side |
Each solver |
|---|---|---|---|---|
demo_lowpass |
gfdtd, mom25d |
4.7 s |
4.6 s |
mom25d 1.7 → 2.8 s, gfdtd 1.1 → 1.3 s |
rf_coupler |
gfdtd, mom25d |
15.8 s |
15.9 s |
mom25d 10.8 → 13.5 s, gfdtd 2.4 → 2.9 s |
hairpin |
gfdtd, mom25d |
12.3 s |
11.8 s |
mom25d 3.8 → 9.6 s, gfdtd 5.8 → 6.1 s |
sma_launch |
gfdtd, mom25d |
48.0 s |
58.7 s |
mom25d 43.6 → 56.3 s, gfdtd 2.2 → 2.8 s |
rf_coupler |
openEMS, gfdtd, mom25d |
42.2 s |
54.1 s |
openEMS 25.9 → 51.6 s, mom25d 11.1 → 16.4 s, gfdtd 2.4 → 3.1 s |
rf_ebg |
gfdtd, mom25d |
331.8 s |
290.0 s |
mom25d 305.7 → 287.7 s, gfdtd 23.9 → 27.9 s |
It gains where one solver’s run hides beneath a much longer one’s: rf_ebg, 1.14 times (gfdtd’s 24 s under mom25d’s 5 minutes). Elsewhere it is even or slower, so one after another stays the default.
Two solvers that both work the CPU share its cores and memory bandwidth: openEMS beside mom25d took twice its time alone (26 → 52 s).
gfdtd’s GPU run and mom25d share the process’s one Python interpreter lock (GIL). gfdtd records each timestep’s three kernel launches from Python (some ten slangpy calls each), so it holds the GIL almost all of the time it runs, and mom25d’s own Python, between its compiled calls, waits. mom25d lost about gfdtd’s whole run time (hairpin: +5.8 s beside gfdtd’s 6 s) on the GPU and on the CPU alike (on the CPU, hairpin’s 5.1-5.6 s became 10.6-11.5 s), while gfdtd lost little. It is not the GPU (mom25d on the CPU loses as much) nor the memory bandwidth. It is not mom25d being in a thread either: alone in a worker thread it took 44 s as in the main thread (sma_launch). A 10 times shorter GIL switch interval saved 0.6 s. The other way round, a pure-Python loop beside gfdtd made gfdtd 30 times slower (hairpin: 6 → 184 s). A gain there needs solvers in processes of their own, or gfdtd recording many steps for each Python call.
mom25d’s thread caps: a solve in a thread other than the first had run its OpenMP fill on every CPU (libgomp keeps the cap per thread); since mom25d ce06a82 each thread is capped to the performance cores.
Reading the tables¶
gfdtd on the GPU is the fastest field solver on two of the six boards (the transition and rf_gcpw, 6 s; 3–9 s on all six), in at most 0.6 GB; its CPU core is 2–6× slower, still faster than openEMS everywhere.
openEMS needs the least memory (0.2–0.3 GB). Its time follows cells × timesteps: high-Q circuits (hairpin, 108k steps) and rf_gcpw’s fence (161k steps) are its slow cases.
mom25d is fastest on four (the antenna, the hairpin, the coupler and the stripline, 3–4 s with the fast setting), and within 1.4× of gfdtd’s GPU on rf_gcpw. Its solid planes are PEC and its lone stitching-via pads left out (planes); where a plane has a signal via through it (the transition’s inner plane), the plane is still meshed: 11–12 s, 1.8× gfdtd’s GPU.
The fast setting halves mom25d’s time on the microstrip boards at a cost of at most 0.02 in |S| (quad cells); it gains less on the transition, whose meshed plane holds most of the unknowns.
mom25d’s GPU helps above about 3,000 unknowns, up to 1.4× over its CPU; small boards stay on the CPU (on the CPU: below
sim.GPU_MIN_N, where the GPU’s start-up costs more than it saves). With its LUs kept across the sweep (reuse), the CPU nearly matches it on the transition.The runs repeat within 10 % on most boards; openEMS and gfdtd’s CPU vary most (up to 37 % and 35 %).
The line model takes about a second on every board, in under 0.15 GB.
To run it again: python tools/bench_solvers.py --openems-python <python with openEMS> (--repeat N, default 3;
--all for every example). Run nothing else meanwhile, a video playing on the GPU included: the times are wall
time.