PHP language performance test

Source: Internet
Author: User

Today, I used to be an ASP. NET believer. After the application of large-volume websites, my experience tells me that Microsoft is targeting most of the low-end and Middle-end users because of its series of products.ProgramBloated, but intelligent, such as sqlserver, 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.

Certificate ----------------------------------------------------------------------------------------------------------------------------------------

Reply from the blogger

Haha, thank you for your reply. I thought my article was yours.ArticleI feel a little left blank. Now I am very pleased to add these comments! I am not afraid to learn the knowledge, and I am not afraid of the Chinese! I only think that I can express my thoughts bravely. I am proud of myself! I don't want to prove anything about data. I just want to express my thoughts. If you think I am wrong, please come up with the correct ones. Can you prove that ASP. NET is faster than PhP! Can you tell me something wrong!

If you say that the performance is better than good, you should look at people and do not look at programming languages.Is the Key to the fast running of a gas vehicle the same as that of a driver?

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.