arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1202.2736cs.PLcs.MScs.NAmath.NA
收藏

MATLAB、Octave、Python、Cython 和 C 的函数调用开销基准测试

Function call overhead benchmarks with MATLAB, Octave, Python, Cython and C

André Gaul

AI总结:

通过基准测试评估 MATLAB/Octave、Python、Cython 和 C 中循环内函数调用的时间开销,识别优化潜力。

摘要:

我们考虑了 MATLAB/Octave、Python、Cython 和 C 编程语言中函数调用的开销。在许多应用中,函数需要在循环内被频繁调用。数值分析中的一个例子是有限元方法,其中需要在循环中对每个单元计算积分。被调用的函数通常可以高效求值,但函数调用本身可能耗时。我们提出了一个基准测试,旨在识别和量化上述编程语言中由函数调用引起的时间消耗方面的优化潜力。

英文摘要:

We consider the overhead of function calls in the programming languages MATLAB/Octave, Python, Cython and C. In many applications a function has to be called very often inside a loop. One such application in numerical analysis is the finite element method where integrals have to be computed on each element in a loop. The called functions can often be evaluated efficiently but the function call itself may be time-consuming. We present a benchmark whose goal is to identify and quantify optimization potentials with respect to time consumption caused by function calls in the mentioned programming languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑