Python(PyPy) is faster than C++ or NOT !

preview_player
Показать описание
Understand the difference between C++ and python !
Рекомендации по теме
Комментарии
Автор

The reality is, C++ is much more faster than python, even pypy interpreter cannot come closer. But the fact that if you want to get job done the only way to go is using python. Also combining python with C plugings give faster results. Python is in-time compiling language, also it has uncompareable abilities like libs so it makes it slower too. Good things comes with a cost, not free.
In otherwords ; C++ can run for you very fast calculator but the real products is not just a calculator, there is authentication, payment gateways, data visualising, web development the python is the filler in this position. So better approach can be deploying c++ microsrvices around tha python (Django can managage an app very well) main python app.

blabla-kkbl
Автор

you are just trying to find the weak point in pypy to prove that c++ always wins, no one would use function to open file a million time at onec. this is a missleading here.

ddkinput
Автор

When you use -O compiler removes unuseless variables, I guess in c++ optimized program, app NOT add something to variable. you should to see assembly code what executed of compiler

eriliaerish
Автор

Oh.. I'm shocked..!! I don't have used the c++ with 100% speed of one because I didn't write the -O3!! Thank you very much!

johnkim
Автор

Time to learn C++ for competitive programming then.

kefrov
Автор

after showing assemler code of optimized c++ why aren't you showing the same xor operation for python as well? It could be programmed and compared likewise. Otherwise there is really no point in showing a measurement without a useful comparision.

klangrein
Автор

Make a comparison using the pyautogui library with python vs. pypy to see which one does better

kasi
Автор

Could You compare Julia language vs C++ please? Tnx

patricior
Автор

8.4e-5 ms*10/10=84e-6 ms= 84 ns, but you wrote 840 ns, it's 10 times faster 😂

LevelUpGA
join shbcf.ru