Standalone benchmark comparing five implementations of the ran_gauss Gaussian random number generator used in bmad-ecosystem radiation tracking.
| Version | Description |
|---|---|
| Original | Upstream code. ran_gauss_vector calls ran_gauss_scalar per element; each scalar call goes through ran_uniform → ran_uniform_scalar → pointer_to_ran_state. |
| Clean | Structural optimizations only: resolve pointer_to_ran_state once, batch Box-Muller pairs in the vector path. No inlined RNG — still calls ran_uniform_vector. |