Python运行时在非数值科学代码上的性能
Performance of Python runtimes on a non-numeric scientific code
摘要:
Murri 2012中用来计算黎曼曲面的模空间的有理同调的Python库FatGHol FatGHoL是一个非数值科学代码的例子:它所做的大部分处理是生成图(由复杂的Python对象表示)和计算它们的同构(Python列表的三元组;同样是嵌套的数据结构)。这些操作重复多次:例如,空间和分别由4 '583'322和747'664图三角化。这是每个Python运行时证明其优化实力的机会。这个实验的目的是评估替代Python运行时的成熟度,包括:与CPython 2.7中实现的语言的兼容性,以及性能加速。本文比较了在不同Python运行时运行FatGHol的结果和经验:CPython 2.7.5,PyPy 2.1,Cython 0.19,Numba 0.11,Nuitka 0.4.4和Falcon。
英文摘要:
The Python library FatGHol FatGHoL used in Murri2012 to reckon the rational homology of the moduli space of Riemann surfaces is an example of a non-numeric scientific code: most of the processing it does is generating graphs (represented by complex Python objects) and computing their isomorphisms (a triple of Python lists; again a nested data structure). These operations are repeated many times over: for example, the spaces and are triangulated by 4'583'322 and 747'664 graphs, respectively. This is an opportunity for every Python runtime to prove its strength in optimization. The purpose of this experiment was to assess the maturity of alternative Python runtimes, in terms of: compatibility with the language as implemented in CPython 2.7, and performance speedup. This paper compares the results and experiences from running FatGHol with different Python runtimes: CPython 2.7.5, PyPy 2.1, Cython 0.19, Numba 0.11, Nuitka 0.4.4 and Falcon.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。