Benchmark Performance of a Rust-Based Python Extension
Document Type
Conference Proceeding
Publication Date
4-23-2025
Abstract
This paper presents a benchmarking analysis comparing the performance of data structures implemented in PyO3 Rust plugins against native Python implementations. The benchmarked data structures include Structure of Arrays (SoA), Array of Structures (AoS), linked lists, and vectors. Rust and Python implementations of each structure were compared, facilitated by PyO3’s wrapping functionality. Benchmarks assessed data access and manipulation, running for 100 iterations across varying element sizes. Results revealed the Rust data structures outperformed the native python implementations with the exception of the Rust AoS plugin.
Source Publication
Scientific Computing and Bioinformatics and Computational Biology (CSCE 2024). Communications in Computer and Information Science (CCIS), Volume 2258
Recommended Citation
Schofield, E., Hodson, D. (2025). Benchmark Performance of a Rust-Based Python Extension. In: Hodson, D.D., Grimaila, M.R., Arabnia, H.R., Deligiannidis, L., Wagner, T.J. (eds) Scientific Computing and Bioinformatics and Computational Biology. CSCE 2024. Communications in Computer and Information Science, vol 2258. Springer, Cham. https://doi.org/10.1007/978-3-031-85902-1_6
Comments
This conference paper is published by Springer and is available by purchase or subscription through the DOI link below.