免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: jiayishuai
打印 上一主题 下一主题

lifetype代码写的很优美啊,二次开发中 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-05-14 16:28 |只看该作者
pdb的:

  1. C:\>ab -k -n 1000 -c 50 -k http://localhost/lifetype/test/testPdb.php
  2. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Copyright 2006 The Apache Software Foundation, http://www.apache.org/

  5. Benchmarking localhost (be patient)
  6. Completed 100 requests
  7. Completed 200 requests
  8. Completed 300 requests
  9. Completed 400 requests
  10. Completed 500 requests
  11. Completed 600 requests
  12. Completed 700 requests
  13. Completed 800 requests
  14. Completed 900 requests
  15. Finished 1000 requests


  16. Server Software:        Apache/2.2.4
  17. Server Hostname:        localhost
  18. Server Port:            80

  19. Document Path:          /lifetype/test/testPdb.php
  20. Document Length:        0 bytes

  21. Concurrency Level:      50
  22. Time taken for tests:   15.515625 seconds
  23. Complete requests:      1000
  24. Failed requests:        0
  25. Write errors:           0
  26. Keep-Alive requests:    1000
  27. Total transferred:      220050 bytes
  28. HTML transferred:       0 bytes
  29. Requests per second:    64.45 [#/sec] (mean)
  30. Time per request:       775.781 [ms] (mean)
  31. Time per request:       15.516 [ms] (mean, across all concurrent requests)
  32. Transfer rate:          13.79 [Kbytes/sec] received

  33. Connection Times (ms)
  34.               min  mean[+/-sd] median   max
  35. Connect:        0    0   0.5      0      15
  36. Processing:   703  756 104.6    734    1515
  37. Waiting:      703  756 104.6    734    1515
  38. Total:        703  756 104.6    734    1515

  39. Percentage of the requests served within a certain time (ms)
  40.   50%    734
  41.   66%    734
  42.   75%    750
  43.   80%    750
  44.   90%    781
  45.   95%    796
  46.   98%   1234
  47.   99%   1375
  48. 100%   1515 (longest request)
复制代码

论坛徽章:
0
12 [报告]
发表于 2007-05-14 16:30 |只看该作者
pdo的:

  1. C:\>ab -k -n 1000 -c 50 -k http://localhost/lifetype/test/testPdo.php
  2. This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Copyright 2006 The Apache Software Foundation, http://www.apache.org/

  5. Benchmarking localhost (be patient)
  6. Completed 100 requests
  7. Completed 200 requests
  8. Completed 300 requests
  9. Completed 400 requests
  10. Completed 500 requests
  11. Completed 600 requests
  12. Completed 700 requests
  13. Completed 800 requests
  14. Completed 900 requests
  15. Finished 1000 requests


  16. Server Software:        Apache/2.2.4
  17. Server Hostname:        localhost
  18. Server Port:            80

  19. Document Path:          /lifetype/test/testPdo.php
  20. Document Length:        1 bytes

  21. Concurrency Level:      50
  22. Time taken for tests:   5.15625 seconds
  23. Complete requests:      1000
  24. Failed requests:        0
  25. Write errors:           0
  26. Keep-Alive requests:    1000
  27. Total transferred:      221050 bytes
  28. HTML transferred:       1000 bytes
  29. Requests per second:    199.38 [#/sec] (mean)
  30. Time per request:       250.781 [ms] (mean)
  31. Time per request:       5.016 [ms] (mean, across all concurrent requests)
  32. Transfer rate:          42.87 [Kbytes/sec] received

  33. Connection Times (ms)
  34.               min  mean[+/-sd] median   max
  35. Connect:        0    0   0.5      0      15
  36. Processing:   156  244  18.3    250     390
  37. Waiting:      156  243  18.3    250     390
  38. Total:        156  244  18.4    250     390

  39. Percentage of the requests served within a certain time (ms)
  40.   50%    250
  41.   66%    250
  42.   75%    250
  43.   80%    250
  44.   90%    250
  45.   95%    265
  46.   98%    296
  47.   99%    343
  48. 100%    390 (longest request)

复制代码


很明显的对比啊 呵呵

[ 本帖最后由 jiayishuai 于 2007-5-14 16:31 编辑 ]

论坛徽章:
0
13 [报告]
发表于 2007-05-14 17:16 |只看该作者
lifetype1.2的pdb只有mysql驱动,尽管如此,感觉还是应该模块化,一个驱动对应一个目录会比较好些,不然的话感觉有些乱。

论坛徽章:
0
14 [报告]
发表于 2007-05-14 17:27 |只看该作者
pdb的pdbrecordset.class.php没有定义GetArray();需要补上,不然pdbdriverbase.class.php的&MetaTables()方法无法使用。

bug?关注中

[ 本帖最后由 jiayishuai 于 2007-5-14 17:30 编辑 ]

论坛徽章:
0
15 [报告]
发表于 2007-05-14 18:28 |只看该作者
把pdb看完了,如果想抽个框架的话,应该把postgresql oracle的补上,倒也不是一件难事,呵呵

论坛徽章:
0
16 [报告]
发表于 2007-05-15 08:21 |只看该作者
lifetype1.2引入了memcache,不过默认的还是cache_lite,因为memcache需要服务器扩展,并不是每台服务器上都有memcache扩展的,尤其是用虚拟主机的朋友 :)

论坛徽章:
0
17 [报告]
发表于 2007-05-15 08:43 |只看该作者
lifetype1.2中cache_lite有了配置文件,而readcontrol默认是关闭的,也就是说不加密的

论坛徽章:
0
18 [报告]
发表于 2007-05-30 14:19 |只看该作者
我也很喜欢lifetype的代码,很优雅

论坛徽章:
0
19 [报告]
发表于 2007-06-01 22:01 |只看该作者
plog 的时候自己提取过框架(不喜欢里面的action独立出来,没有明确的module,controller),现在转 zend framework了

pdo快是肯定的

至于缓存,zend framework提供几乎所有的手段

不管怎么说,研究lifetype之后对mvc结构应该能有个更好的理解

good luck

论坛徽章:
0
20 [报告]
发表于 2007-06-13 10:52 |只看该作者
二次开发基本完成,现已经能模块化开发,正在整理中,不久就发上来.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP