Next Article in Journal
From Commutation to Modal Symmetry: Half-Cycle Symmetry, Detuning Duality, and Symmetry Breaking in LLC Resonant DC–DC Converters
Previous Article in Journal
Inter-Limb Hand Force Asymmetry in Front Crawl Swimming: Individual Interpretation Using BAI-1, MDD, and MID
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Computational Performance of Programming Languages in Mathematical Biology: A Ten-Language Evaluation Across Six Modeling Regimes

1
School of Nano-Tech and Nano-Bionics, University of Science and Technology of China, Suzhou 215123, China
2
School of Computer Science and Software Engineering, Shenzhen University, Shenzhen 518060, China
*
Author to whom correspondence should be addressed.
Symmetry 2026, 18(9), 1559; https://doi.org/10.3390/sym18091559 (registering DOI)
Submission received: 20 July 2026 / Revised: 24 August 2026 / Accepted: 27 August 2026 / Published: 18 September 2026

Abstract

Mathematical biology spans multiple computational regimes—from ordinary differential equation models of gene regulatory networks to stochastic simulation of chemical kinetics and reaction-diffusion models of spatial pattern formation—each imposing distinct computational demands on the software infrastructure that executes them. The choice of programming language for implementation of these mathematical models carries quantitative performance consequences that have not been systematically measured across the range of models employed in contemporary mathematical biology. This study provides a computational performance evaluation across ten languages (Python, Julia, Rust, C, C++, C#, F#, Go, Java, and R) and six mathematical biology modeling regimes: deterministic ODE integration, stochastic chemical kinetics, parameter-space exploration, reaction-diffusion spatial modeling, agent-based discrete simulation, and Bayesian parameter inference. Execution time, peak memory footprint, cyclomatic complexity, type-conversion density, and the semantic alignment between data structures and biological state representation were recorded under a uniform experimental protocol. Under a unified hand-coded Dormand–Prince 5(4) integrator, native implementations outperform managed-runtime counterparts by nearly two orders of magnitude for ODE integration, a differential that shrinks sharply once library-delegated solvers are removed from the comparison; the gap contracts below 55× when stochastic kinetics shift the bottleneck from arithmetic throughput to branch resolution. In memory-bandwidth-limited reaction-diffusion modeling, native and just-in-time implementations converge to within a few percent. Agent-based models expose a distinct regime-dependent overhead: immutable-by-default collection semantics impose disproportionate cost during mutation-intensive computation. Peak memory varies by roughly two orders of magnitude across languages, directly affecting deployment density for large-scale simulation. Code-structural measurements confirm that algorithmic form enforces a floor on cyclomatic complexity, irrespective of language, while type strictness and mutation semantics generate substantial differences in per-line cognitive load. These results provide a quantitative foundation for computational tool selection in mathematical biology, challenging universal language recommendations and supporting choices grounded in the algorithmic character of each modeling regime.
Keywords: mathematical biology; computational biology; programming languages; differential equations; stochastic processes; systems biology mathematical biology; computational biology; programming languages; differential equations; stochastic processes; systems biology

Share and Cite

MDPI and ACS Style

Zheng, Y.; Luo, Q. Computational Performance of Programming Languages in Mathematical Biology: A Ten-Language Evaluation Across Six Modeling Regimes. Symmetry 2026, 18, 1559. https://doi.org/10.3390/sym18091559

AMA Style

Zheng Y, Luo Q. Computational Performance of Programming Languages in Mathematical Biology: A Ten-Language Evaluation Across Six Modeling Regimes. Symmetry. 2026; 18(9):1559. https://doi.org/10.3390/sym18091559

Chicago/Turabian Style

Zheng, Yi, and Qiuming Luo. 2026. "Computational Performance of Programming Languages in Mathematical Biology: A Ten-Language Evaluation Across Six Modeling Regimes" Symmetry 18, no. 9: 1559. https://doi.org/10.3390/sym18091559

APA Style

Zheng, Y., & Luo, Q. (2026). Computational Performance of Programming Languages in Mathematical Biology: A Ten-Language Evaluation Across Six Modeling Regimes. Symmetry, 18(9), 1559. https://doi.org/10.3390/sym18091559

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop