University of Houston
Department of Computer Science


In partial fulfillment of the Requirements for the Degree of
Master of Science


Xiaozhuang Wu
will defend his thesis

A Performance Comparison of Java and C# in Execution Speed
 


Abstract

 

With the development of Java Virtual Machine (JVM) technology and compiler optimization, Java performance has improved enormously. C# is a new object-oriented programming language developed by Microsoft for the .NET platform. Given the similarities between C# and Java in syntax, design and even runtime behavior, it would make more sense to compare C# and Java other than C/C++ and Java with regard to performance.

A series of performance experiments is designed, implemented and conducted to evaluate the performance of Java and C#. The results show that C# codes run faster than Java codes on the Windows system in majority of cases such as object creation, inheritance and polymorphism, late binding, casts, string manipulation, reflection, matrix computation, collections, sorting (primitive types), I/O, but lag behind Java codes in graphics programming, variables, exceptions, sorting (object types), and File I/O (random access). Some explanations and recommendations for performance improvements are also given.

 

Date: Thursday, July 18, 2002
Time: 2:00 PM
Place: 550-PGH


Faculty, students, and the general public are invited.
Thesis Advisor: Dr. Stephen Huang