Performance gap between php and node. js

Source: Internet
Author: User
PHP: Which of the following is faster than nginxmysqlphp? How fast? Where is it? PHP: nginx mysql php

In general, which one is faster? How fast? Where is it?

Reply content:

PHP: nginx mysql php

In general, which one is faster? How fast? Where is it?

What do you mean by speed? Command Processing? Template rendering? Or comprehensive?

Node. js has the advantage of non-blocking IO, so itsThroughputIt can be relatively large and php can be used independently. There is no node advantage in this regard.

However, when you consider the performance issue, who will deploy a php separately? Do you have a front-end with another web server, such as nginx, does this not improve throughput?

In addition, in general, the slowness mainly lies in database access, and other processes can be ignored. Therefore, when you consider performance, it is meaningless to consider it separately.

If you want to consider the technical selection, you can choose mature ones, which is easy for the team to get started. I personally prefer php, because php is mature and stable, and many are used. nodejs may not be able to compare with php.

In general, node. js is fast and cannot be quantified in terms of speed. Fast in the event model, non-IO blocking, V8 JIT.

However:
1. PHPNG leaves the mountains next year
2. in the direction where node. js is advantageous, the porn film community can send swoole for World War I.

How can we compare C language to PHP?

A single node. js process wins.

The building has started to crash?

(The machine code goes out, who is fighting for power ......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.