Posts tagged numba
Exploring Python Performance: PyPy vs CPython vs Numba
- 13 May 2024
Python developers often face the decision of choosing between different implementations for their projects, especially when performance is a crucial factor. In this blog post, we delve into a comparative benchmarking study between PyPy, CPython, and Numba, focusing on calculating Pi value using a custom script.
Calculating π with Numba
- 29 March 2024
Here is a version of the calculation of π using numba. Numba does just-in-time compilation from Python code and also supports parallelism. I was able to test calculate_pi()
in the order of billions of iteretions and without consuming too much memory.