33
Views
0
CrossRef citations to date
0
Altmetric
Original Articles

A Molecular Dynamics Computer Simulation Performance Comparison of Java Versus C

Pages 417-422 | Received 01 Jul 2000, Accepted 01 Sep 2000, Published online: 23 Sep 2006
 

Abstract

The relative performance of molecular dynamics (MD) computer simulations of fluids written in ANSI C is compared to that achieved by a comparable program written in Java. The performance of the Java program is shown to be dependent upon its runtime environment. The Java Runtime Environment (JRE) from the Java Development Kit (JDK) 1.2 provides a Just-In-Time (JIT) compiler option on Solaris and Windows 95 platforms which decreases the execution time by approximately 4–10× compared to the standard Java interpreter. The compiled Java implementation of the MD computer simulation runs between 30–100% slower. depending on the platform, compared to the equivalent C implementation. The stability of the two simulations, as measured by conservation of energy is shown to be identical to within ∼ 1% over 105 time steps.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.