Computational Benchmark Study in Spatio‐Temporal Statistics With a Hands‐On Guide to Optimise R
ABSTRACT This study provides a comprehensive evaluation of the computational performance of R , MATLAB , Python , and Julia for spatial and spatio‐temporal modelling, focusing on high‐dimensional datasets typical in geospatial statistical analysis. We benchmark each language across key tasks, including matrix manipulations and transformations, iterative programming routines, and Input/Output processes, all of which are critical in environmetrics. The results demonstrate that MATLAB excels in matrix‐based computations, while Julia consistently delivers competitive performance across a wide range of tasks, establishing itself as a robust, open‐source alternative. Python , when combined with libraries like NumPy , shows strength in specific numerical operations, offering versatility for general‐purpose programming. R , despite its slower default performance in raw computations, proves to be highly adaptable; by linking to optimized libraries like OpenBLAS or MKL and integrating C++ with packages like Rcpp , R achieves significant performance gains, becoming competitive with the other languages. This study also provides practical guidance for researchers to optimize R for geospatial data processing, offering insights to support the selection of the most suitable language for specific modelling requirements.
Authors
- Lorenzo Tedesco (ORCID: https://orcid.org/0000-0002-2273-3577)
- Jacopo Rodeschini (ORCID: https://orcid.org/0000-0003-1874-1854)
- Philipp Otto (ORCID: https://orcid.org/0000-0002-9796-6682)
Institutions
- University of Bergamo (IT)
- University of Glasgow (GB)
Publication Details
- Journal
- Environmetrics
- Published
- 2025-06-28
- DOI
- https://doi.org/10.1002/env.70017
- Citations
- 1
- Primary Topic
- Spatial and Panel Data Analysis
- Type
- article
- Field-Weighted Citation Impact
- 3.13
Funders
- Deutsche Forschungsgemeinschaft