Learn Before
Code

Pypy Example

The example below executed with the standard CPython implementation ran in 20.6 seconds.

total = 0 for i in range(1, 10000): for j in range(1, 10000): total += i + j

Running the script with pypy3 script.py takes 0.22 seconds. As we can see in this instance Pypy is over 93x faster.

0

1

Updated 2021-04-30

Tags

Python Programming Language

Data Science