沧蓝 发表于 2008-3-24 23:32:20

CI vs Kohana,执行速度以及内存占用比较(外带炮灰cakephp)

原文:http://thislab.com/2008/03/25/kohana-vs-codeigniter-speed-and-memory-usage-performance-benchmark/

Execution time
CI 1.6.1: 0.5657s
K SVN: 0.5718s
K 2.1.1: 0.5787s

Memory usage (pre-controller)
CI 1.6.1: 642,136 bytes
K SVN: 1,097,976 bytes
K 2.1.1: 1,076,972 bytes

Memory usage (post-controller)
CI 1.6.1: 2,354,524 bytes
K SVN: 3,062,376 bytes
K 2.1.1: 3,026,884 bytes



Results the lower the better (total time taken).

CI 1.6.1: 110.236098 seconds
K SVN: 130.211059 seconds
K 2.1.1: 130.662462 seconds

Results the higher the better (requests per second).

CI 1.6.1: 122.18 [#/sec]
K SVN: 113.96 [#/sec]
K 2.1.1: 118.54 [#/sec]

As a comparison (just for fun), here are two results for CakePHP:

First run: 18.66 [#/sec]
Second run: 33.47 [#/sec]

The first run was done in default set up whilst the second one was done by using suggested tweaks.

Just for fun. 随便看看就好。 :)

Hex 发表于 2008-3-25 00:09:01

顶 CTO 的技术文章!!

lony 发表于 2008-3-25 08:52:51

看来性能上CI还是很大优势的嘛

谁能对比下开发速度?嘿嘿。这个问题嘛。。。。嘿嘿

whidbey 发表于 2008-3-25 12:18:51

:) :lol :lol :lol :lol

gdtv 发表于 2009-4-23 11:52:53

看来性能上CI还是很大优势的嘛

谁能对比下开发速度?嘿嘿。这个问题嘛。。。。嘿嘿
lony 发表于 2008-3-25 08:52 http://codeigniter.org.cn/forums/images/common/back.gif
没看出有优势啊,只是相差一点点而已

yuwen002 发表于 2009-4-23 13:31:00

CI的速度,在国外框架中算是很快的了。
开发速度上。我个人认为还是用那个框架熟练程度.

visvoy 发表于 2009-4-23 17:13:05

全面PHP5化是要牺牲点效率的

xjflyttp 发表于 2009-4-30 23:56:37

解析型语言用面向对象本身就是耗费资源的....
项目的可维护性和效率取舍吧...反正硬件性能也不差了....

gdtv 发表于 2009-4-30 23:57:45

不是说YII更快吗

ewayfly 发表于 2009-5-10 21:35:29

哎,哎。。。
本人今年的目标是先CI,然后ZF。
ZF之前看过,挺庞大,功能挺全。
但CI用于开发WEB,简直就是首选。
其实不在于框架,而在于个人对框架的应用能力,个人的PHP水平。
说多了,说多了,睡觉去了。
页: [1] 2
查看完整版本: CI vs Kohana,执行速度以及内存占用比较(外带炮灰cakephp)