|
|
|
|
|
by orf
3302 days ago
|
|
Newsflash: code like this[1] will never be fast in CPython, and if you write a lot of code like that and are sad when it's slow then you need a different language, especially if you expect it to be as fast as a JIT compiled language like js on v8. Or use something like Cython. That benchmark is pretty meaningless anyway, IMO. Here are some halfway decent, official and up to date benchmarks comparing python 2 and python 3[2]. Python 3 is slower in some areas, noticilby startup time, but it's not all doom and gloom. It's faster in a lot of places. And productivity is hard to benchmark, but IMO py3 is way better in the area. 1. https://github.com/MikeMirzayanov/binary-heap-benchmark/blob... 2. https://speed.python.org/comparison/?exe=12%2BL%2B3.6%2C12%2... |
|