HackerPapers

arXiv:1202.2736cs.PL

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

André Gaul

HN submission. Found in a submission link or body. Submitters do not count as commenters in the main ranking; a submission is not an endorsement.

Abstract

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.

arXiv comments
The benchmark's source code is available under GPL3 at https://bitbucket.org/andrenarchy/funcall
Journal reference
DOI
Subjects
cs.PLProgramming Languages cs.MSMathematical Software math.NANumerical Analysis

On Hacker News

No comments linking this paper were found in the collected sources. Found in 1 HN submission from Feb 2012 to Feb 2012. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments0 threads

No comments linking this paper were found in the collected sources. Open submission discussions.

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.