DEV Community

Discussion on: Why Django For Backend Than PHP(Laravel)

Collapse
 
assunluis80 profile image
Luís Assunção

"Speed is almost same for some part python was better" tell that to any experienced senior engineer, and you'll be fired! Because it's a BIG LIE! PHP is in orders of magnitude faster than Python.

Collapse
 
akashthakur05 profile image
Akash Singh

Brother , Most Python library are ported from same c and c++ code so most of the time there are solutions that compile back to same assembly as c and now the python work faster than anything you know in php . For Proofs you can send me mail i will share you the benchmarks for our organization tested results.

Nobody can fire you unless you are an idiot

Thread Thread
 
assunluis80 profile image
Luís Assunção • Edited

WTF are you talking about?! I've been working with both languages for more then 10 years. Have you ever heard about PHP OpCache? php.net/manual/en/book.opcache.php
"python work faster than anything you know in php" never witnessed so blatantly lie! Are you living in some parallel universe?
hackr.io/blog/python-vs-php check the speed comparison section.

Collapse
 
akashthakur05 profile image
Akash Singh

The code compilation process affects the performance and speed of these two programming languages. A just-in-time compiler converts the Python development code into bytecode, each time a file is created or modified. So the Python files need not be recompiled again in future. The Python interpreter can easily access and fetch the precompiled bytecode (.pyc files). The code compilation process makes Python faster than PHP.