PHP language performance study _ PHP Tutorial

Source: Internet
Author: User
Test the PHP language performance. Today, I used to be an ASP. NET followers, who later passed through the application of large-volume websites, told me that Microsoft is targeting most people in the middle and low-end, because of his series of product programs today, I used to be an ASP. NET followers, who later passed the application of large-volume websites, told me that Microsoft is targeting most of the low-end and middle-end groups, because of the bloated, intelligent, for example, SQL Server, iis, and other bundled services, ASP. NET Runtime Library, the page needs to perform too many initialization operations, so that the page must be slow and occupy too much memory.

Today, I plan to examine the performance bottom line and running mechanism of PHP and hope to have a good result!

The PHP kernel is executed in the middle of the Opcode run by the Zend Engine component, just like the. NET Framework runtime. But there is a big difference. Zend Engine is a virtual machine. it interprets and executes Opcode, that is, read and execute a sentence, similar to ASP. But because OpCode is binary, the syntax is standard and byte, so that the read performance is very fast, much faster than ASP. And. NET is said to be converted into a computer language and then directly called for operation. It can be said that. net will be faster, but in fact,. NET, coupled with the bloated class libraries, does not know the compilation process, the speed currently cannot keep up with php interpretation.

From the perspective of enterprise demand, too high performance is not the first requirement. It also requires a simple program to reduce development costs, and performance can provide the demand. PHP's solutions for large websites can meet these needs, because it is simple and exquisite. although it is not the best, it consumes a lot of performance, generally, merchants can start to support it. the most important thing is that it only consumes a little bit, which can be ignored, while asp.net is different. In addition, you can use the cluster solution to solve the problem.

PHP supports the FPM process management mode, which ensures high processing performance when large traffic and memory are required.

Fastcgi is supported, which can be better compatible with high-performance server interfaces, and even the linux operating performance is very good!

In general, PHP is suitable for portal websites and applications with large traffic volumes.


...

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.