果然是效率高

ubuntu 8.10 带的是5.10 perl的




2009/3/29 agentzh <[email protected]>

> 2009/2/19 agentzh <[email protected]>
>
>> Benchmark 显示,我们的 OpenResty 测试集在同一台 Ubuntu Linux 上,使用 perl 5.10.0 比 perl
>> 5.8.8 快了 10% ~ 20% 的样子。于是我把我手上的生产机全布署上自己编译的 perl 5.10.0 了,呵呵。
>>
>
> 我刚刚 benchmark 了一下,使用我自己编译的 perl 5.10.0 在同一台机器上运行 CommentHunter.pm 的测试集要比
> Ubuntu 自带的 perl 5.8.8 快一倍多:
>
> with perl 5.10.0:
> Files=2, Tests=522, 58 wallclock secs (55.07 cusr +  1.87 csys = 56.94 CPU)
>
> with perl 5.8.8
> Files=2, Tests=522, 131 wallclock secs (118.83 cusr +  2.34 csys = 121.17
> CPU)
>
> ListHunter.pm 项目的 benchmark 结果是类似的:
>
> Files=4, Tests=377, 88 wallclock secs (79.97 cusr +  2.87 csys = 82.84 CPU)
> Files=4, Tests=377, 58 wallclock secs (52.67 cusr +  2.35 csys = 55.02 CPU)
>
> CommentHunter.pm 中使用的正则最多,所以提速最明显,呵呵。perl 5.10.0 的 regex engine 还是很牛 X 的 ;)
>
> 使用 perl 5.10.0 加载 sina 首页的 VDOM 的用时也从 400 多 ms 下降到 300 多 ms :)
>
> Cheers,
> -agentzh
>
> >
>


-- 
           Yours Sincerely
                   Zeng Hong

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。
 要在此论坛发帖,请发电子邮件到 [email protected]
 要退订此论坛,请发邮件至 [email protected]
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

回复