Wave 3a Four-Way Performance Benchmark Report (MESA r26.4.1)¶
Raw Capture Provenance (benchmarks/raw/26.4.1/, #146)
Measured offline against MESA r26.4.1 (fortran_wave3a.txt, rust_waves_1_to_5.txt, python_waves_1_to_5.json). All four workloads call compiled MESA r26.4.1 eosDT_get_component routines in every Fortran stage.
1. Environment & Checksum Consistency¶
- Raw archive:
benchmarks/raw/26.4.1/(provenance.json,fortran_wave*.txt,rust_waves_1_to_5.txt,python_waves_1_to_5.json). - Capture timestamp (UTC):
2026-11-17T22:46:37Z(with cleanfortran_wave3b.txtandfortran_wave4.txtrerun from a relativeMESA_DIRlayout at2026-11-17T23:25:34Zon base commitb5b6abd). - Continuous verification:
ci_continuous_verification = false(CI builds and tests Safe Rust, PyO3, and JAX without a MESA installation, so the Fortran comparators run offline on a workstation). - Host hardware:
AMD Ryzen 7 9800X3D 8-Core Processor(16 logical cores,OMP_NUM_THREADS=4,RAYON_NUM_THREADS=4),NVIDIA GeForce RTX 5080,Linux x86_64. - Toolchains: MESA
r26.4.1, SDKx86_64-linux-26.6.1,GNU Fortran (GCC) 15.2.0(-O2 -fopenmp -cpp -ffree-form -ffree-line-length-none),rustc 1.100.0 (0ef1bc386 2026-11-09),Python 3.14.0, JAX0.11.0(gpu,jax_enable_x64=True). - Workload taxonomy (
28workloads,84(workload, N_zones)points):21full MESAr26.4.1workloads,3mixed MESA0-1/ Ref. Fortran2-3workloads (auto_diff,mtx_tridiag,chem_comp),3hybrid Reference Fortran workloads (w5_diff_rot,w5_binary_rlof,w5_astero_seism), and1standalone non-MESA Reference Fortran workload (w5_riemann_rsp2).
All 12 (workload, N_zones) pairs agree across all 9 printed significant digits (at most 1.47e-09 between JSON and 9-digit printed sums, within print rounding).
| Workload | \(N_{\mathrm{zones}}\) | Comparator Checksum | Safe Rust Checksum | Python/JAX Checksum | |Rust - F90| Rel. |
|JAX - F90| Rel. |
Rust max_rel_err |
JAX max_rel_err |
|---|---|---|---|---|---|---|---|---|
eos_ideal |
128 | 2.30115881e+03 |
2.30115881e+03 |
2.30115881e+03 |
0.000e+00 |
8.561e-10 |
0.000e+00 |
8.462e-10 |
eos_helm |
128 | 5.68883671e+03 |
5.68883671e+03 |
5.68883671e+03 |
0.000e+00 |
6.888e-11 |
0.000e+00 |
1.008e-09 |
eos_pc |
128 | 6.59157662e+03 |
6.59157662e+03 |
6.59157662e+03 |
0.000e+00 |
3.438e-10 |
0.000e+00 |
3.724e-13 |
eos_skye |
128 | 5.68822944e+03 |
5.68822944e+03 |
5.68822944e+03 |
0.000e+00 |
7.231e-10 |
0.000e+00 |
7.862e-10 |
eos_ideal |
1024 | 1.84092705e+04 |
1.84092705e+04 |
1.84092705e+04 |
0.000e+00 |
2.304e-10 |
0.000e+00 |
2.001e-09 |
eos_helm |
1024 | 4.55066091e+04 |
4.55066091e+04 |
4.55066091e+04 |
0.000e+00 |
1.141e-10 |
0.000e+00 |
1.219e-08 |
eos_pc |
1024 | 5.27338319e+04 |
5.27338319e+04 |
5.27338319e+04 |
0.000e+00 |
8.907e-10 |
0.000e+00 |
4.350e-13 |
eos_skye |
1024 | 4.55017356e+04 |
4.55017356e+04 |
4.55017356e+04 |
0.000e+00 |
1.051e-09 |
0.000e+00 |
8.371e-09 |
eos_ideal |
4096 | 7.36370820e+04 |
7.36370820e+04 |
7.36370820e+04 |
0.000e+00 |
2.304e-10 |
0.000e+00 |
1.698e-09 |
eos_helm |
4096 | 1.82024698e+05 |
1.82024698e+05 |
1.82024698e+05 |
0.000e+00 |
1.465e-09 |
0.000e+00 |
4.233e-09 |
eos_pc |
4096 | 2.10935846e+05 |
2.10935846e+05 |
2.10935846e+05 |
0.000e+00 |
4.614e-10 |
0.000e+00 |
5.547e-13 |
eos_skye |
4096 | 1.82005197e+05 |
1.82005197e+05 |
1.82005197e+05 |
0.000e+00 |
1.932e-10 |
0.000e+00 |
2.477e-07 |

2. Four-Way Runtime Tables (\(N_{\mathrm{zones}} \in \{128, 1024, 4096\}\))¶
2.1 Fortran MESA r26.4.1 (benchmarks/fortran_mesa/run_wave3a_bench)¶
| Workload | \(N_{\mathrm{zones}}\) | Stage 0 (\(\mu\mathrm{s}\)) | Stage 1 (\(\mu\mathrm{s}\)) | Stage 2 (\(\mu\mathrm{s}\)) | Stage 3 (4t OpenMP) (\(\mu\mathrm{s}\)) | Stage 0 / Stage 2 | Stage 0 / Stage 3 |
|---|---|---|---|---|---|---|---|
eos_ideal |
128 | 370.46 +/- 15.61 |
366.94 +/- 20.30 |
296.17 +/- 3.41 |
89.22 +/- 77.47 |
1.25x |
4.15x |
eos_helm |
128 | 333.68 +/- 6.90 |
333.09 +/- 8.11 |
272.07 +/- 120.42 |
69.57 +/- 0.25 |
1.23x |
4.80x |
eos_pc |
128 | 1402.55 +/- 94.79 |
1401.27 +/- 53.72 |
1364.00 +/- 190.44 |
321.69 +/- 31.40 |
1.03x |
4.36x |
eos_skye |
128 | 2047.14 +/- 36.36 |
2027.19 +/- 176.39 |
1983.42 +/- 175.13 |
505.07 +/- 49.70 |
1.03x |
4.05x |
eos_ideal |
1024 | 3106.86 +/- 249.43 |
2947.51 +/- 162.14 |
2431.03 +/- 96.14 |
632.11 +/- 21.14 |
1.28x |
4.92x |
eos_helm |
1024 | 2666.41 +/- 43.85 |
2620.31 +/- 28.96 |
2247.49 +/- 303.83 |
558.24 +/- 10.84 |
1.19x |
4.78x |
eos_pc |
1024 | 11229.77 +/- 294.16 |
11435.89 +/- 320.43 |
11038.20 +/- 218.15 |
2807.23 +/- 769.97 |
1.02x |
4.00x |
eos_skye |
1024 | 16184.18 +/- 639.35 |
16930.07 +/- 208.56 |
16215.91 +/- 629.31 |
3940.18 +/- 120.80 |
1.00x |
4.11x |
eos_ideal |
4096 | 12219.63 +/- 419.60 |
11645.43 +/- 253.72 |
9678.60 +/- 142.24 |
2452.50 +/- 57.26 |
1.26x |
4.98x |
eos_helm |
4096 | 10752.01 +/- 133.82 |
10560.83 +/- 65.07 |
8845.34 +/- 149.39 |
2250.11 +/- 53.54 |
1.22x |
4.78x |
eos_pc |
4096 | 44953.70 +/- 278.21 |
44917.03 +/- 682.08 |
43041.36 +/- 883.23 |
11229.69 +/- 607.86 |
1.04x |
4.00x |
eos_skye |
4096 | 64855.88 +/- 611.63 |
64550.62 +/- 518.11 |
63575.02 +/- 746.35 |
16540.28 +/- 1498.28 |
1.02x |
3.92x |
2.2 Safe Rust (strict, --release)¶
| Workload | \(N_{\mathrm{zones}}\) | Stage 0 (\(\mu\mathrm{s}\)) | Stage 1 (\(\mu\mathrm{s}\)) | Stage 2 (\(\mu\mathrm{s}\)) | Stage 3 (4t rayon) (\(\mu\mathrm{s}\)) |
Stage 0 / Stage 2 | Stage 0 / Stage 3 |
|---|---|---|---|---|---|---|---|
eos_ideal |
128 | 152.68 +/- 2.97 |
151.88 +/- 8.16 |
142.80 +/- 0.60 |
35.42 +/- 0.09 |
1.07x |
4.31x |
eos_helm |
128 | 65.39 +/- 0.25 |
65.24 +/- 2.90 |
62.52 +/- 0.77 |
31.78 +/- 0.17 |
1.05x |
2.06x |
eos_pc |
128 | 463.22 +/- 13.17 |
461.25 +/- 14.87 |
446.64 +/- 6.57 |
110.89 +/- 0.20 |
1.04x |
4.18x |
eos_skye |
128 | 1143.72 +/- 34.21 |
1113.31 +/- 13.68 |
1108.23 +/- 54.11 |
268.32 +/- 15.58 |
1.03x |
4.26x |
eos_ideal |
1024 | 1276.30 +/- 33.94 |
1267.80 +/- 11.84 |
1202.36 +/- 22.07 |
290.86 +/- 12.98 |
1.06x |
4.39x |
eos_helm |
1024 | 573.21 +/- 13.50 |
575.06 +/- 22.71 |
561.82 +/- 24.29 |
141.76 +/- 23.27 |
1.02x |
4.04x |
eos_pc |
1024 | 4184.28 +/- 163.49 |
4312.04 +/- 222.35 |
4142.55 +/- 83.39 |
977.04 +/- 43.08 |
1.01x |
4.28x |
eos_skye |
1024 | 9621.92 +/- 197.93 |
9556.00 +/- 473.47 |
9413.11 +/- 365.30 |
2339.16 +/- 191.32 |
1.02x |
4.11x |
eos_ideal |
4096 | 5315.45 +/- 302.79 |
5213.67 +/- 315.80 |
5027.24 +/- 174.47 |
1222.13 +/- 15.42 |
1.06x |
4.35x |
eos_helm |
4096 | 2478.32 +/- 56.47 |
2466.38 +/- 108.20 |
2285.51 +/- 28.64 |
552.04 +/- 12.41 |
1.08x |
4.49x |
eos_pc |
4096 | 17110.06 +/- 193.23 |
17234.01 +/- 487.74 |
16775.92 +/- 343.19 |
4176.51 +/- 215.39 |
1.02x |
4.10x |
eos_skye |
4096 | 38255.80 +/- 441.74 |
37980.68 +/- 264.19 |
38290.31 +/- 655.42 |
9525.61 +/- 366.16 |
1.00x |
4.02x |
2.3 Python / PyO3 & JAX float64¶
| Workload | \(N_{\mathrm{zones}}\) | Stage 0 PyO3 1t (\(\mu\mathrm{s}\)) | Stage 1 PyO3 4t (\(\mu\mathrm{s}\)) | Stage 2 JAX @jit (\(\mu\mathrm{s}\)) |
Stage 2 Compile (\(\mathrm{ms}\)) | Stage 3 JAX vmap (\(\mu\mathrm{s}\)) |
Stage 3 Compile (\(\mathrm{ms}\)) |
|---|---|---|---|---|---|---|---|
eos_ideal |
128 | 158.11 +/- 30.31 |
44.74 +/- 4.16 |
1315.11 +/- 49.90 |
396.3 |
323.77 +/- 25.14 |
384.7 |
eos_helm |
128 | 75.02 +/- 4.73 |
23.50 +/- 3.12 |
1272.93 +/- 29.78 |
1766.9 |
319.58 +/- 3.87 |
1465.7 |
eos_pc |
128 | 465.20 +/- 49.79 |
118.31 +/- 20.21 |
2451.41 +/- 152.78 |
7655.6 |
632.06 +/- 26.48 |
6608.6 |
eos_skye |
128 | 1177.39 +/- 33.25 |
304.15 +/- 20.35 |
3597.74 +/- 92.61 |
27826.7 |
660.56 +/- 163.46 |
33820.4 |
eos_ideal |
1024 | 1301.83 +/- 106.64 |
347.93 +/- 43.17 |
1310.34 +/- 21.34 |
531.7 |
328.29 +/- 22.58 |
483.5 |
eos_helm |
1024 | 665.31 +/- 30.23 |
180.37 +/- 20.29 |
1351.36 +/- 99.62 |
1575.5 |
327.85 +/- 22.92 |
1313.8 |
eos_pc |
1024 | 4091.18 +/- 36.63 |
1005.73 +/- 33.91 |
6936.76 +/- 235.64 |
8709.6 |
360.02 +/- 9.72 |
5373.1 |
eos_skye |
1024 | 10698.68 +/- 329.62 |
2598.82 +/- 369.23 |
3635.22 +/- 221.58 |
32021.8 |
969.09 +/- 72.16 |
45491.0 |
eos_ideal |
4096 | 5209.31 +/- 42.52 |
1364.69 +/- 82.96 |
1295.06 +/- 22.30 |
545.6 |
325.25 +/- 2.87 |
499.1 |
eos_helm |
4096 | 2833.42 +/- 37.58 |
818.10 +/- 77.68 |
1315.64 +/- 24.33 |
1750.4 |
339.22 +/- 7.59 |
2795.3 |
eos_pc |
4096 | 16636.38 +/- 27.99 |
4284.64 +/- 219.41 |
1418.73 +/- 102.37 |
5043.2 |
645.09 +/- 48.04 |
5174.5 |
eos_skye |
4096 | 39014.31 +/- 634.99 |
10097.24 +/- 2195.10 |
3962.46 +/- 162.32 |
71639.9 |
4202.59 +/- 204.45 |
60668.4 |
3. Key Wave 3a Findings (\(N_{\mathrm{zones}} = 4096\))¶
eos_helm& analytical EOS throughput: At 4096 zones and 4 threads, Safe Rust evaluateseos_helmin552.04 usvs.2250.11 usin MESA (4.08x).eos_skyewarm speed vs. XLA compile cost: Warm GPU@jax.jit(jax.vmap)evaluateseos_skyein4202.59 usper profile vs.9525.61 usin 4t Safe Rust and16540.28 usin 4t MESA (3.94x), at the cost of60668.4 msfirst-call XLA compilation.