- 论坛徽章:
- 0
|
本帖最后由 zhouzhen1 于 2017-06-15 22:04 编辑
我昨天跑了一个benchmark,Perl 5.14.4, 5.20.3, 5.26.0,都是perlbrew的默认安装配置。用Benchmark :: Perl :: Formance跑的。
看得出除了regex那块普遍不如5.14意外,这几年Perl的性能总的还是有明显提升的。
- item 5.14 5.20 5.26
- perlformance.perl5.DPath.dpath 118.1 116 100
- perlformance.perl5.Fib 104.8 126 100
- perlformance.perl5.FibOO 111.5 116 100
- perlformance.perl5.MatrixReal.det_LR.030 142.8 128 100
- perlformance.perl5.MatrixReal.det.030 147.3 134 100
- perlformance.perl5.MatrixReal.inverse.030 145.7 134 100
- perlformance.perl5.MatrixReal.invert_LR.030 140.4 126 100
- perlformance.perl5.MatrixReal.matrix_squared.030 176.4 158 100
- perlformance.perl5.MatrixReal.matrix_times_itself.030 180.2 167 100
- perlformance.perl5.MatrixReal.to_negative_one.030 145.7 140 100
- perlformance.perl5.Mem.allocate 179.9 107 100
- perlformance.perl5.Mem.copy 93.7 103 100
- perlformance.perl5.Rx.regexes.fieldsplit1 88.6 97 100
- perlformance.perl5.Rx.regexes.fieldsplit2 119.2 91 100
- perlformance.perl5.Rx.regexes.pathological 82.5 105 100
- perlformance.perl5.RxCmp.native 80.6 99 100
- perlformance.perl5.RxMicro.code-literal 105.1 124 100
- perlformance.perl5.RxMicro.code-runtime 2.7 91 100
- perlformance.perl5.RxMicro.precompile-access 74.6 115 100
- perlformance.perl5.RxMicro.runtime-compile 92.0 109 100
- perlformance.perl5.RxMicro.runtime-compile-nocache 84.0 102 100
- perlformance.perl5.Shootout.binarytrees 112.4 115 100
- perlformance.perl5.Shootout.fasta 138.8 140 100
- perlformance.perl5.Shootout.nbody 147.0 144 100
- perlformance.perl5.Shootout.spectralnorm 121.4 120 100
复制代码
CU貌似不支持monospace字体也是醉了。。 |
|