Google公布Unladen Swallow项目,改进CPython性能

标签:Python, 性能

详情可以查看项目计划(这里还有个项目计划翻译),今年1季度的性能测试如下:
2to3:
Min: 22.888 -> 20.299: 12.75% faster
Avg: 22.926 -> 20.329: 12.77% faster
Significant (t=145.835478, a=0.95)

Django:
Min: 0.596 -> 0.554: 7.52% faster
Avg: 0.598 -> 0.557: 7.43% faster
Significant (t=297.475166, a=0.95)

Pickle (complex):
Min: 1.023 -> 0.409: 150.36% faster
Avg: 1.053 -> 0.410: 157.17% faster
Significant (t=1102.029662, a=0.95)

Pickle (simple):
Min: 1.223 -> 0.868: 40.83% faster
Avg: 1.229 -> 0.876: 40.20% faster
Significant (t=695.483070, a=0.95)

PyBench:
Min: 46961 -> 38795: 21.05% faster
Avg: 47775 -> 39635: 20.54% faster

SlowPickle:
Min: 1.236 -> 1.072: 15.22% faster
Avg: 1.239 -> 1.076: 15.17% faster
Significant (t=497.615245, a=0.95)

SlowSpitfire:
Min: 0.762 -> 0.670: 13.87% faster
Avg: 0.764 -> 0.671: 13.80% faster
Significant (t=452.978688, a=0.95)

SlowUnpickle:
Min: 0.606 -> 0.528: 14.63% faster
Avg: 0.607 -> 0.530: 14.60% faster
Significant (t=581.549445, a=0.95)

Unpickle (complex):
Min: 0.738 -> 0.536: 37.71% faster
Avg: 0.746 -> 0.547: 36.24% faster
Significant (t=122.112665, a=0.95)

Unpickle (simple):
Min: 0.756 -> 0.486: 55.60% faster
Avg: 0.774 -> 0.493: 56.91% faster
Significant (t=331.578243, a=0.95)
目前不够吸引人,因为大部分都在50%以内,2季度的目标也只是提升10%,争取到25%,看今后会有怎样的发展吧。

如果LLVM的性能接近JVM的水平,不知道会有多少程序员转到Python呢~

顺便说下,项目基于Python 2.6.1,也就是Python 3和使用Python 2.5.2的Google App Engine是无法获益的=。=

2条评论 你不来一发么↓ 顺序排列 倒序排列

    向下滚动可载入更多评论,或者点这里禁止自动加载

    想说点什么呢?