A Comparison Study on Execution Performance of MATLAB and APL

We present a study on the execution performance of APL and MATLAB on a suite of five programs ranging from one of highly iterative nature to ones mainly do array operations. The comparison on performance is carried out in three different modes of execution: interpreted, compiled and parallel. We found that MATLAB interpreter is in general much faster than APL; and compiled MATLAB code executes not necessary faster while in APL the compiler provides significant performance improvement. The strategies for parallel execution in MATLAB and APL are different: one is interpreter-based, the other compiler-based. We discuss some insights into programming language implementation from this study.

[1]  Wai-Mee Ching,et al.  Automatic Parallelization of Array-oriented Programs for a Multi-core Machine , 2012, International Journal of Parallel Programming.

[2]  Kenneth E. Iverson,et al.  Notation as a tool of thought , 1980, APLQ.

[3]  Luiz A. DeRose,et al.  Compiler techniques for MATLAB programs , 1996 .

[4]  Michael J. Quinn,et al.  Preliminary results from a parallel MATLAB compiler , 1998, Proceedings of the First Merged International Parallel Processing Symposium and Symposium on Parallel and Distributed Processing.