3 ms·
It depends on the code. You don't get speed for free by using C extensions with CPython. You have to write code specifically for that extension. To get signific
by globular-toast 6y ago
It depends on the code. You don't get speed for free by using C extensions with CPython. You have to write code specifically for that extension. To get significant speed benefits from numpy, for example, you need specific knowledge of numpy and the code produced will be completely different from regular Python. Pypy, on the other hand, is essentially a free speed boost when you have standard python code.