• DocumentCode
    3281398
  • Title

    Performance analysis of generics in scientific computing

  • Author

    Dragan, Laurentiu ; Watt, Stephen M.

  • Author_Institution
    Ontario Res. Centre for Comput. Algebra, Western Ontario Univ., London, Ont., Canada
  • fYear
    2005
  • fDate
    25-29 Sept. 2005
  • Abstract
    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 efficiency-critical scientific applications, and we identify specific areas for potential optimization.
  • Keywords
    natural sciences computing; software libraries; software performance evaluation; C# programming language; C++ programming language; Java programming language; generics performance; performance analysis; scientific computing; Algebra; Application software; Benchmark testing; Computer languages; Costs; Java; Optimizing compilers; Performance analysis; Scientific computing; Standards development;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Symbolic and Numeric Algorithms for Scientific Computing, 2005. SYNASC 2005. Seventh International Symposium on
  • Print_ISBN
    0-7695-2453-2
  • Type

    conf

  • DOI
    10.1109/SYNASC.2005.56
  • Filename
    1595834