This explores various options to optimize the Python implementation of the 1billion loop problem.
Read more about my findings on substack
$ git clone https://github.com/miraculixx/1billionpy.git $ cd 1billionpy $ ./run
Note you need to install hyperfine, create a Python3.13 environment and install pypy before running.