2011 13th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing (2005)
Sept. 25, 2005 to Sept. 29, 2005
Stephen M. Watt , University of Western Ontario
Laurentiu Dragan , University of Western Ontario
This paper studies the performance of generics, or templates as they are sometimes called, for scientific computing in various programming languages. In order to understand the cost of using generics, we develop a test suite for generics based on a standard numeric benchmark. We compare the results of this new benchmark for generics in C++, C# and Java, both between language implementations and against the specialized, non-generic benchmark. We also compare the efficiency of C++ with Aldor, a language originally for computer algebra relying entirely on generics. We find that the implementation of generics in current compilers must be improved before they are used for efficiencycritical scientific applications, and we identify specific areas for potential optimization.
Stephen M. Watt, Laurentiu Dragan, "Performance Analysis of Generics in Scientific Computing", 2011 13th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing, vol. 00, no. , pp. 93-100, 2005, doi:10.1109/SYNASC.2005.56