I want to make Restful API for current PHP application with mongodb backend database.
NodeJS (express) vs Python (web.py), which is better for performance?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So I found some speed test article. It’s written in Russian so you may not able to read this. But you can look at the code for examples.
Here simple test results and short translation of explanation:
Python, Tornado
Node.js
There is no description of testing computer but it’s not so matter.
The reason why Node.js is faster is that it uses nonblocking event loop while Python’s time.sleep is blocking.
Update 2021
Since Python has received asyncio, the benchmarks from the article aren’t complete without tests of asyncio.