Wave 3b 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_wave3b.txt regenerated cleanly from a relative MESA_DIR working directory without Fortran format-width overflow, rust_waves_1_to_5.txt, python_waves_1_to_5.json). All five workloads call MESA r26.4.1 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 15 (workload, N_zones) pairs agree across all 9 printed significant digits across MESA r26.4.1, Safe Rust strict, and Python/JAX float64.
| 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_4d |
128 | 3.25978346e+03 |
3.25978346e+03 |
3.25978346e+03 |
0.000e+00 |
1.808e-10 |
0.000e+00 |
1.891e-12 |
kap_fixed |
128 | 4.65455295e+01 |
4.65455295e+01 |
4.65455295e+01 |
0.000e+00 |
2.532e-10 |
0.000e+00 |
0.000e+00 |
rates_screen |
128 | -1.81971803e+03 |
-1.81971803e+03 |
-1.81971803e+03 |
0.000e+00 |
2.041e-09 |
0.000e+00 |
1.081e-13 |
net_eval |
128 | 1.53917124e+03 |
1.53917124e+03 |
1.53917124e+03 |
0.000e+00 |
6.676e-10 |
0.000e+00 |
0.000e+00 |
atm_table |
128 | 1.43822020e+03 |
1.43822020e+03 |
1.43822020e+03 |
0.000e+00 |
1.995e-09 |
0.000e+00 |
1.820e-14 |
eos_4d |
1024 | 2.60782677e+04 |
2.60782677e+04 |
2.60782677e+04 |
0.000e+00 |
1.882e-09 |
0.000e+00 |
2.062e-12 |
kap_fixed |
1024 | 3.72363584e+02 |
3.72363584e+02 |
3.72363584e+02 |
0.000e+00 |
1.057e-09 |
0.000e+00 |
0.000e+00 |
rates_screen |
1024 | -1.45565240e+04 |
-1.45565240e+04 |
-1.45565240e+04 |
0.000e+00 |
2.731e-09 |
0.000e+00 |
1.468e-13 |
net_eval |
1024 | 1.23133811e+04 |
1.23133811e+04 |
1.23133811e+04 |
0.000e+00 |
2.219e-09 |
0.000e+00 |
0.000e+00 |
atm_table |
1024 | 1.15059988e+04 |
1.15059988e+04 |
1.15059988e+04 |
0.000e+00 |
3.396e-09 |
0.000e+00 |
4.081e-14 |
eos_4d |
4096 | 1.04313071e+05 |
1.04313071e+05 |
1.04313071e+05 |
0.000e+00 |
2.277e-10 |
0.000e+00 |
2.107e-12 |
kap_fixed |
4096 | 1.48945406e+03 |
1.48945406e+03 |
1.48945406e+03 |
0.000e+00 |
1.976e-09 |
0.000e+00 |
0.000e+00 |
rates_screen |
4096 | -5.82255771e+04 |
-5.82255771e+04 |
-5.82255771e+04 |
0.000e+00 |
8.464e-10 |
0.000e+00 |
1.693e-13 |
net_eval |
4096 | 4.92535290e+04 |
4.92535290e+04 |
4.92535290e+04 |
0.000e+00 |
6.249e-10 |
0.000e+00 |
0.000e+00 |
atm_table |
4096 | 4.60240965e+04 |
4.60240965e+04 |
4.60240965e+04 |
0.000e+00 |
7.862e-10 |
0.000e+00 |
9.188e-13 |

2. Four-Way Runtime Tables (\(N_{\mathrm{zones}} \in \{128, 1024, 4096\}\))¶
2.1 Fortran MESA r26.4.1 (benchmarks/fortran_mesa/run_wave3b_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_4d |
128 | 383.83 +/- 11.52 |
373.39 +/- 6.22 |
317.85 +/- 9.58 |
157.59 +/- 77.03 |
1.21x |
2.44x |
kap_fixed |
128 | 490.43 +/- 8.64 |
482.10 +/- 14.58 |
424.73 +/- 12.93 |
106.76 +/- 0.48 |
1.15x |
4.59x |
rates_screen |
128 | 275.50 +/- 8.10 |
278.56 +/- 38.68 |
181.18 +/- 19.69 |
41.85 +/- 3.29 |
1.52x |
6.58x |
net_eval |
128 | 3017.91 +/- 36.95 |
3006.57 +/- 18.36 |
3002.99 +/- 59.03 |
765.06 +/- 9.88 |
1.00x |
3.94x |
atm_table |
128 | 192.74 +/- 1.75 |
193.39 +/- 8.50 |
194.78 +/- 0.50 |
49.45 +/- 6.05 |
0.99x |
3.90x |
eos_4d |
1024 | 3057.89 +/- 100.44 |
3008.09 +/- 40.56 |
2547.79 +/- 37.45 |
652.53 +/- 10.53 |
1.20x |
4.69x |
kap_fixed |
1024 | 4003.56 +/- 141.01 |
3913.92 +/- 173.68 |
3400.35 +/- 45.50 |
863.74 +/- 27.59 |
1.18x |
4.64x |
rates_screen |
1024 | 2162.59 +/- 17.83 |
2186.72 +/- 63.67 |
1446.48 +/- 79.44 |
363.28 +/- 10.25 |
1.50x |
5.95x |
net_eval |
1024 | 24156.37 +/- 388.57 |
24293.60 +/- 377.78 |
24364.95 +/- 666.87 |
6200.32 +/- 88.43 |
0.99x |
3.90x |
atm_table |
1024 | 1869.73 +/- 20.87 |
1843.28 +/- 31.35 |
1820.54 +/- 16.29 |
484.44 +/- 13.80 |
1.03x |
3.86x |
eos_4d |
4096 | 12450.22 +/- 251.43 |
12390.31 +/- 319.05 |
10452.64 +/- 481.84 |
2697.28 +/- 211.01 |
1.19x |
4.62x |
kap_fixed |
4096 | 16047.76 +/- 284.75 |
15927.61 +/- 224.73 |
13949.47 +/- 102.74 |
3484.26 +/- 264.17 |
1.15x |
4.61x |
rates_screen |
4096 | 8668.73 +/- 320.62 |
8736.84 +/- 402.22 |
5562.06 +/- 80.11 |
1449.50 +/- 140.96 |
1.56x |
5.98x |
net_eval |
4096 | 98220.58 +/- 1710.50 |
97134.90 +/- 1007.32 |
97309.08 +/- 1406.37 |
26085.18 +/- 2485.52 |
1.01x |
3.77x |
atm_table |
4096 | 7453.73 +/- 364.08 |
7362.62 +/- 148.23 |
7488.36 +/- 194.83 |
1954.16 +/- 150.87 |
1.00x |
3.81x |
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_4d |
128 | 139.77 +/- 14.91 |
132.48 +/- 0.13 |
97.17 +/- 8.08 |
25.06 +/- 0.41 |
1.44x |
5.58x |
kap_fixed |
128 | 120.59 +/- 0.19 |
120.07 +/- 0.23 |
93.34 +/- 2.09 |
45.18 +/- 0.08 |
1.29x |
2.67x |
rates_screen |
128 | 66.30 +/- 1.03 |
66.30 +/- 1.54 |
62.73 +/- 1.70 |
31.30 +/- 0.40 |
1.06x |
2.12x |
net_eval |
128 | 746.98 +/- 22.48 |
752.89 +/- 9.86 |
628.32 +/- 24.65 |
162.45 +/- 0.65 |
1.19x |
4.60x |
atm_table |
128 | 28.07 +/- 0.10 |
28.00 +/- 0.29 |
28.09 +/- 0.27 |
7.28 +/- 0.04 |
1.00x |
3.86x |
eos_4d |
1024 | 1057.62 +/- 7.88 |
1068.98 +/- 9.33 |
788.04 +/- 18.82 |
198.18 +/- 9.59 |
1.34x |
5.34x |
kap_fixed |
1024 | 985.13 +/- 19.17 |
988.23 +/- 33.18 |
759.46 +/- 19.18 |
193.53 +/- 14.99 |
1.30x |
5.09x |
rates_screen |
1024 | 574.65 +/- 11.72 |
597.51 +/- 31.59 |
568.28 +/- 25.58 |
136.15 +/- 23.37 |
1.01x |
4.22x |
net_eval |
1024 | 5946.50 +/- 289.07 |
6214.97 +/- 214.31 |
4967.75 +/- 35.21 |
1256.18 +/- 8.28 |
1.20x |
4.73x |
atm_table |
1024 | 234.70 +/- 2.46 |
241.68 +/- 13.81 |
241.12 +/- 10.93 |
75.73 +/- 3.08 |
0.97x |
3.10x |
eos_4d |
4096 | 4286.59 +/- 303.74 |
4333.87 +/- 27.05 |
3266.93 +/- 279.86 |
839.76 +/- 293.10 |
1.31x |
5.10x |
kap_fixed |
4096 | 3955.06 +/- 99.94 |
3974.90 +/- 63.80 |
3050.72 +/- 83.12 |
775.77 +/- 11.69 |
1.30x |
5.10x |
rates_screen |
4096 | 2445.47 +/- 31.25 |
2439.46 +/- 8.14 |
2393.40 +/- 12.95 |
612.07 +/- 141.21 |
1.02x |
4.00x |
net_eval |
4096 | 23862.63 +/- 337.70 |
24664.85 +/- 490.72 |
20921.58 +/- 292.99 |
5411.82 +/- 980.01 |
1.14x |
4.41x |
atm_table |
4096 | 993.23 +/- 7.76 |
997.71 +/- 19.10 |
991.22 +/- 11.18 |
255.46 +/- 21.13 |
1.00x |
3.89x |
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_4d |
128 | 113.53 +/- 0.34 |
35.44 +/- 3.40 |
235.02 +/- 29.67 |
228.5 |
67.06 +/- 267.31 |
240.6 |
kap_fixed |
128 | 95.77 +/- 0.97 |
50.44 +/- 2.09 |
480.45 +/- 29.15 |
36.8 |
171.91 +/- 28.92 |
23.3 |
rates_screen |
128 | 61.63 +/- 1.23 |
17.20 +/- 1.36 |
246.97 +/- 62.98 |
229.9 |
315.23 +/- 264.31 |
252.9 |
net_eval |
128 | 581.97 +/- 26.23 |
154.53 +/- 14.30 |
613.41 +/- 30.96 |
33.0 |
278.19 +/- 28.47 |
22.2 |
atm_table |
128 | 29.27 +/- 0.53 |
9.52 +/- 0.38 |
1451.10 +/- 44.22 |
431.2 |
372.17 +/- 7.76 |
701.8 |
eos_4d |
1024 | 919.69 +/- 26.45 |
279.76 +/- 25.06 |
272.67 +/- 37.09 |
177.0 |
330.22 +/- 2.59 |
284.1 |
kap_fixed |
1024 | 788.36 +/- 46.45 |
206.19 +/- 18.98 |
761.18 +/- 187.36 |
30.0 |
349.87 +/- 29.76 |
21.3 |
rates_screen |
1024 | 571.26 +/- 76.87 |
133.62 +/- 21.58 |
1265.29 +/- 1018.50 |
217.4 |
321.69 +/- 3.98 |
230.1 |
net_eval |
1024 | 4720.37 +/- 171.71 |
1180.95 +/- 32.93 |
1696.66 +/- 227.77 |
30.0 |
1368.59 +/- 48.28 |
25.2 |
atm_table |
1024 | 263.82 +/- 31.98 |
66.66 +/- 53.41 |
1455.54 +/- 35.38 |
415.0 |
368.17 +/- 40.68 |
423.1 |
eos_4d |
4096 | 3592.71 +/- 24.11 |
1058.73 +/- 43.07 |
1372.01 +/- 60.89 |
244.2 |
333.70 +/- 7.37 |
273.2 |
kap_fixed |
4096 | 3172.38 +/- 125.84 |
812.53 +/- 49.57 |
1691.59 +/- 549.97 |
28.9 |
1112.97 +/- 46.66 |
22.1 |
rates_screen |
4096 | 2356.38 +/- 99.21 |
571.62 +/- 23.24 |
1288.68 +/- 1028.82 |
146.2 |
319.30 +/- 29.23 |
227.1 |
net_eval |
4096 | 18418.24 +/- 143.37 |
4789.53 +/- 252.85 |
5699.80 +/- 642.37 |
31.2 |
5210.01 +/- 282.62 |
37.6 |
atm_table |
4096 | 1084.00 +/- 297.50 |
268.96 +/- 16.01 |
1504.40 +/- 144.05 |
403.6 |
367.99 +/- 95.33 |
339.3 |
3. Key Wave 3b Findings (\(N_{\mathrm{zones}} = 4096\))¶
- 4D tabulated EOS (
eos_4d): At 4096 zones, 4-thread Safe Rust runs in839.76 usvs.2697.28 usin MESA (3.21x), and GPU@jax.jit(jax.vmap)reaches333.70 usper profile (8.08x). - Networks and atmospheres: At 4096 zones and 4 threads, Safe Rust evaluates
net_evalin5411.82 usvs.26085.18 usin MESA (4.82x), andatm_tablein255.46 usvs.1954.16 usin MESA (7.65x).