doophp执行gen_modelandview时没权限怎么弄

关于doitphp,thinkphp,yii,ci,doophp等框架的性能测试对照_PHP大全_优良自学吧 |
当前位置: >
> 关于doitphp,thinkphp,yii,ci,doophp等框架的性能测试对照优良自学吧提供关于doitphp,thinkphp,yii,ci,doophp等框架的性能测试对照,关于doitphp,thinkphp,yii,ci,doophp等框架的性能测试对比 测试环境:
硬件环境: THINKPAD T61笔记本 CPU:INTEL CORE(TM2) DUO T770 内存:2G 硬盘:320G 7200 显卡:集成显卡
软件环境:关于doitphp,thinkphp,yii,ci,doophp等框架的性能测试对比
测试环境:
硬件环境:
THINKPAD T61笔记本
CPU:INTEL CORE(TM2) DUO T770
硬盘:320G 7200
显卡:集成显卡
软件环境:
操作系统:win 2003 sp2
PHP环境:Apache/2.2.17 (Win32) PHP/5.3.6
数据库:mysql 5.5.10
测试工具:apache bench (即:ab)
测试内容:ab -c 10 -n 1000 测试网址
让这些框架从同一个数据库,同一个数据表读出1000条数据,并在视图中显示出来,且视图采用视图渲染(即:layout和widget应用)。保证最后输出页面内容相同(HTML完全一样)。
测试结果:
1、原生php:注:上图测试数据是500次的测试数据,在测试1000时,由于系统报错,故测试了500次。所用时间:2.032秒(1.016*2)平均每秒请求次数:492.31次平均每次请求所用时间:20.313毫秒
2、doitphp:测试版本:1.0所用时间:5.750秒平均每秒请求次数:173.91次平均每次请求所用时间:57.500毫秒(是原生PHP运行效率的35.3%)
3、thinkphp测试版本:2.1所用时间:11.797秒平均每秒请求次数:84.77次平均每次请求所用时间:117.969毫秒(是原生PHP运行效率的17.2%)
4、codeigniter测试版本:2.0.2所用时间:15.266秒平均每秒请求次数:65.51次平均每次请求所用时间:152.656毫秒(是原生PHP运行效率的13.3%)
5、yii framework测试版本:1.1.8所用时间:26.328秒平均每秒请求次数:37.98次平均每次请求所用时间:263.281毫秒(是原生PHP运行效率的7.7%)
6、doophp测试版本:1.4.1所用时间:14.484秒平均每秒请求次数:69.04次平均每次请求所用时间:144.844毫秒(是原生PHP运行效率的14.0%)
7、qeephp测试版本:2.1.2560所用时间:24.609秒平均每秒请求次数:40.63次平均每次请求所用时间:246.094毫秒(是原生PHP运行效率的8.3%)
结论:在综合应用上,DoitPHP运行效率分别是:原生PHP的 35.3%,是thinkphp 2.1 的2.1倍是codeigniter 2.0.2的2.6倍是doophp 1.4.1的2.5倍是yii 1.1.8的4.5倍是qeephp 2.1.倍。
(本文来自互联网,不代表搜站(/)的观点和立场)编辑推荐最近更新A Blazing Fast Experience
The Fastest MVC based PHP framework
DooPHP a high-performance framework. It might be the fastest MVC based PHP framework in the world!
Most framework tries to be a platform full of unnecessary widgets/plugins and sometimes even think of replacing the designer role by generating frontend designs! DooPHP truly believe in the seperation of business logic and the user interface. Everyone has their own role in a team, and they shall do what they are most capable of.
With DooPHP, nothing is loaded except what is need no
extra function calls, no extra class includes and no extra overhead. Which makes
it the fastest framework in existence. But don't take our word for it, benchmark DooPHP on your own to find out the truth.
*The benchmark has been updated on 25 February, 2011. Details . The previous benchmark . If you wish to run the benchmark on your own, you can get the souce at .
To be fair, the comparison is done on the same machine, operating system, web server, and PHP FastCGI mode. 4 other popular php frameworks are chosen to compare with DooPHP. QeePHP, CodeIgniter and Yii are among the better performing frameworks known to PHP developers.
The frameworks tested are the latest by 25 February, 2011, CodeIgnitor 2.0, Yii 1.1.6 stable, CakePHP 1.3.7, CakePHP 2.0 dev, Symfony 2.0 sandbox, Kohana 3.1 and DooPHP 1.4.1
Since our goal is to compare the minimal overhead of each framework, the
benchmark application for each framework should be the simplest one. We choose
to display a &Hello World& text string by placing an echo statement
in the default action of each application. Any additional framework features
(e.g. database, caching, session) are disabled to ensure fairness of the comparison.
All tests are done without caching of data such as project settings, routes, environment mode. No disk cache or memory cache such as apc_store functions are used. It's plainly echo 'Hello World'; in the controller action.
APC extension is enabled for PHP and it's installed with the default configurations. Each framework is benchmarked 10 times and the average of the results is use as final. The RPS (requests per second) numbers were obtained using the ApacheBench tool with the command
&ab -t 30 -c 10 URL& (i.e., at concurrency level 10 running the
test for 30 seconds).
The chart above shows how efficient DooPHP is when compared with other popular PHP frameworks. In the graph, RPS stands for &request per second& which describes how many requests an application written in a framework can process per second. The higher the number, the more efficient a framework is. As we can see that Doo outperforms all other frameworks in this comparison.
The performance advantage of Doo is especially significant when the widely used
is enabled. APC is a type of op-code cache for PHP. You can still get good performance with the framework if your server doesn't have APC but
installed other alternative like E-Accelerator, Zend Optimizer and XCache instead. Almost all shared hosting environment have these extensions installed as well.
Even without these op-code mechanism, DooPHP still runs blazing fast for your web application.
Are you thinking that Hello World is a boring trick to benchmark a framework's performance? DooPHP agrees with you! Why not just benchmark some other features such as template engine and database ORM using the same hardware and environment? It should be lot of fun.
In this test, we compare the original DooPHP's Hello World benchmark with basic features of the framework. The 1st test
outputs Hello World using the template engine to display the words. The 2nd test had database connection and models configured and setup. It executes a simple SELECT * FROM query to a table in the DB. The last test is aimed for production mode where configuration data are cached and Doo deploy.php is used. Doo's deploy.php is a combination of several classes that are core to Doo to reduce file inclusion.
Operating System: Ubuntu Server (Marverik) 64 bit
Web Server:
web server 0.7.67
PHP: 5.3.5, with PHP-FPM, any non-essential extensions are disabled
CPU: Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz - 64 bit processor
Main Memory: 4GB DDR3 1066Mhz
Hard Drive: 1TB 7200 RPM SATA II HDD
One of the benchmarked result:
ab -t30S -c10 http://localhost/doophp-1.4.1/app/
This is ApacheBench, Version 2.3 &$Revision: 655654 $&
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests
Server Software:
nginx/0.7.67
Server Hostname:
Server Port:
Document Path:
/doophp-1.4.1/app/
Document Length:
Concurrency Level:
Time taken for tests:
6.438 seconds
Complete requests:
Failed requests:
Write errors:
Total transferred:
8450000 bytes
HTML transferred:
550000 bytes
Requests per second:
7766.51 [#/sec] (mean)
Time per request:
1.288 [ms] (mean)
Time per request:
0.129 [ms] (mean, across all concurrent requests)
Transfer rate:
1281.78 [Kbytes/sec] received
Connection Times (ms)
mean[+/-sd] median
Processing:
Percentage of the requests served within a certain time (ms)
10 (longest request)

我要回帖

更多关于 model是什么意思 的文章

 

随机推荐