Laravel5.1 an empty project, or a link to the database, takes several records of a table and displays them: From a ab-t10-c10127.0.0.1laravel511publicindex.php or ab-n100-c100127.0.0.1laravel511publicindex.php... laravel5.1 is an empty project or a database linked to show several records of a table:
Use AB-t 10-c 10 http: // 127.0.0.1/laravel511/public/index. php
Or AB-n100-c100 http: // 127.0.0.1/laravel511/public/index. php
Result request per time: <50
If you change to slim3 or ci3 for testing, you can achieve reququest per time: 200-300.
If you do not use any framework and perform the same test, the value can reach: request per time: 1300.
Do you still need to use the framework in this case? The Architecture of the project can be so low.
The machine hardware is blind.
Reply content:
Laravel5.1 is an empty project or a database linked to show several records of a table:
Use AB-t 10-c 10 http: // 127.0.0.1/laravel511/public/index. php
Or AB-n100-c100 http: // 127.0.0.1/laravel511/public/index. php
Result request per time: <50
If you change to slim3 or ci3 for testing, you can achieve reququest per time: 200-300.
If you do not use any framework and perform the same test, the value can reach: request per time: 1300.
Do you still need to use the framework in this case? The Architecture of the project can be so low.
The machine hardware is blind.
Do not know how to handle the route?
Http://www.oschina.net/search? Q = % E8 % B7 % AF % E7 % 94% B1 & scope = project & tag1 = 0 & tag2 = 0 & lang = 22 & OS = 0
A 40-ton truck ran at an 80-hour speed on the highway.
A Ferrari flew over 250 times per hour,
Say to the truck: Hey, big fat man, why are you so slow?
Then the Earth is still turning around. Someone is driving a truck, someone is driving a Ferrari...
======================== The following is the updated content ======
======= Update again ==========
Delete the previous content and do not participate in such a thing in the future. Thank you!
@ Lanffy
Larval is a framework that has a lot of class files to start and load, and its speed is indeed quite slow. Therefore, you must open PHP OpCache and enjoy using it.
OPcache saves pre-compiled PHP scripts to the shared memory to improve PHP performance. The advantage of storing pre-compiled bytecode is that it saves the overhead of loading and parsing PHP scripts each time.
The OPcache extension has been bound to PHP 5.5.0 and later versions. For PHP 5.2, 5.3, and 5.4, you can use the OPcache library in the» PECL extension.
Http://php.net/manual/zh/intro.opcache.php
The framework is a tool,The tool focuses on its applicability and
You can use another one, or write it yourself if it is powerful enough;
But the overall factor islaravel
It always makes sense to become the most popular PHP framework in the world. It is better to learn and use it first. After all, development requires team collaboration;
It is impossible for any application to carry out the functions of a page. In fact, your test is meaningless. There are still many content to add for an empty project, if this project is large enough, the difference in the framework limitations will be very small, but the project difficulty controllability caused by different frameworks will be much different, and whether there are rich extensions to achieve rapid development, time is money,laravel
There are a lot of extensions, and their usage is well encapsulated, so they will be very handy when you are familiar with them;
Only flexible application tools can play the role of a tool. In actual development, it is impossible to judge the life and death of a tool for dozens of hundreds of milliseconds;
There is still a lot of use in Chinaasp
What about
Come on.
Both of my projects are implemented by laraven. The two projects provide IPaddress of about 10 thousand every day. The two servers are configured with a 16-core 32 GB server and an 8-core 16 GB server, now, it is impossible to use top to view the load by adding more than 80 machines. Now, I regret it. I knew this would be native.
One road can run 1000 bicycles, and only 100 cars may be allowed.
It's really slow. I have tested it, so I don't need it.
Laravel is simple. Iterative products can be updated quickly. (the number of lines written by native PHP can be completed within 10 lines)
Do you have so many users? Need to consider performance issues? Besides, performance problems can be solved by machine configuration and quantity.
If your project is bigger, you can use other frameworks such as Yaf, Phalcon, and Java.
The performance is Laravel's survival and death.
If you need a high-performance framework, you can try Yaf, which is created in pure C:
Yaf is a PHP framework similar to Zend Framework, which is written in C and built as PHP extension.
Http://php.net/manual/zh/book.yaf.php
Http://pecl.php.net/package/yaf
In terms of performance, YII2.0 ci3.0 is a relatively lightweight framework. You can try it. For other high-performance products, palphon and yaf are very good.