An Empirical Comparison Of C,c++,java,perl,python,rexx,and Tcl For A Search-string Processing Program


E-Book Content

An empirical comparison of C, C++, Java, Perl, Python, Rexx, and Tcl for a search/string-processing program Lutz Prechelt ([email protected]) ¨ fur Fakultat ¨ Informatik ¨ Karlsruhe Universitat D-76128 Karlsruhe, Germany +49/721/608-4068, Fax: +49/721/608-7343 http://wwwipd.ira.uka.de/EIR/ Technical Report 2000-5 March 10, 2000 Abstract 80 implementations of the same set of requirements, created by 74 different programmers in various languages, are compared for several properties, such as run time, memory consumption, source text length, comment density, program structure, reliability, and the amount of effort required for writing them. The results indicate that, for the given programming problem, “scripting languages” (Perl, Python, Rexx, Tcl) are more productive than conventional languages. In terms of run time and memory consumption, they often turn out better than Java and not much worse than C or C++. In general, the differences between languages tend to be smaller than the typical differences due to different programmers within the same language. CONTENTS 2 Contents 1 On language comparisons 3 2 Origin of the programs 2.1 Non-script group: C, C++, Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Script group: Perl, Python, Rexx, Tcl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 4 3 Validity: Are these programs comparable? 3.1 Programmer capabilities . . . . . . . . . . 3.2 Work time reporting accuracy . . . . . . . . 3.3 Different task and different work conditions 3.4 Handling a misunderstood requirement . . . 3.5 Other issues . . . . . . . . . . . . . . . . . 3.6 Summary . . . . . . . . . . . . . . . . . . . . . .
You might also like

Object-oriented Analysis And Design With Applications
Authors: Grady Booch , Robert A. Maksimchuk , Michael W. Engel , Bobbi J. Young , Jim Conallen , Kelli A. Houston    145    0


Distributed Computing: Principles, Algorithms, And Systems
Authors: Ajay D. Kshemkalyani , Mukesh Singhal    105    0


Algorithm Theory — Swat 2002: 8th Scandinavian Workshop On Algorithm Theory Turku, Finland, July 3–5, 2002 Proceedings
Authors: Torben Hagerup , Rajeev Raman (auth.) , Martti Penttonen , Erik Meineche Schmidt (eds.)    143    0


Computer Graphics And Geometric Modeling. Mathematics
Authors: Max K. Agoston    176    0


Mri: Basic Principles And Applications
Authors: Mark A. Brown , Richard C. Semelka    145    0


3d Structure From Images — Smile 2000: Second European Workshop On 3d Structure From Multiple Images Of Large-scale Environments Dublin, Irleand, July 1–2, 2000 Revised Papers
Authors: Paul Debevec (auth.) , Marc Pollefeys , Luc Van Gool , Andrew Zisserman , Andrew Fitzgibbon (eds.)    146    0


Introduction To Complexity Theory, Lecture Notes
Authors: Goldreich O.    133    0



Functional Programming And Parallel Graph Rewriting(free Web Version)
Authors: M. R. Sleep , M. J. Plasmeijer    157    0