计算机科学 > 分布式、并行与集群计算
[提交于 2022年3月15日 (v1),最后修订于 2022年5月23日 (此版本, v2)]
标题:Performance Comparison of Python Translators for a Multi-threaded CPU-bound Application
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Currently, Python is one of the most widely used languages in various application areas. However, it has limitations when it comes to optimizing and parallelizing applications due to the nature of its official CPython interpreter, especially for CPU-bound applications. To solve this problem, several alternative translators have emerged, each with a different approach and its own cost-performance ratio. Due to the absence of comparative studies, we have carried out a performance comparison of these translators using N-Body as a case study (a well-known problem with high computational demand). The results obtained show that CPython and PyPy presented poor performance due to their limitations when it comes to parallelizing algorithms; while Numba and Cython achieved significantly higher performance, proving to be viable options to speed up numerical algorithms.