Making maps With Computers: Project Web Hosting - Open Source Software

Java Code Speed Test



The SpeedTest program is used to test the speed of Java code on various computer platforms. In preparing for the design of a map making program I was concerned with how fast, or slow, some common program code structures might be. Back in the "old" days when we ran with a 1MHZ or 2MHZ 8 bit 8080 CPU we always had to be concerned with
getting every bit of performance. Because Java is a "byte code" system and not fully compiled it will run somewhat slower than a fully compiled program. Comparative tests have shown that the Java Virtual Machine (VM) run code about ½ as fast as a fully compiled program. To look into the performance of Java code a number of simple test routines were run on several machines. Overall, the performance was quite good to outstanding.

The program allows you to run four different tests. These are:

1. A null loop 50,000,000 times.
2. 500,000 sin and 500,000 cos math calculations.
3. A simple array of 5000 doubles is allocated 50,000 times.
4. Load an array of 50,000 points 20 times.

While not a test, the program will also read out the Java Run Time environment parameters for you.

The Timing Tests.doc and .htm files provide the results from running the program on a number of machines. If you provide the results from your machine I will look at adding it to the report.

Fred Pospeschil


The SpeedTest distribution directory structure for this project
is as follows.

    src\
        META-INFk\
            MANIFEST.MF
        speedtest\
            about.png
            SpeedTest.java
            SpeedTest_AboutBox.java
            SpeedTest1.java
    README.txt
    SpeedTest.jpx
    SpeedTest4.jar
    SpeedTest4-linux
    SpeedTest4-mac
    SpeedTest4-solaris
    SpeedTest4W.exe
    Timing Tests.doc
    Timing Tests.htm

The root directory contains the following files:

The SpeedTest4* programs can be executed by double clicking them in the environment indicated by their extensions. The SpeedTest.jar is an executable which can be run if you have the Java Runtime Environment (JRE) installed. If you do not have installed you can get it free at http://www.java.com/en

The SpeedTest.jpx file is the JBuilder control file.

README.txt. This File.

The src\ directory contains the Java code for the program.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.  For more information, please refer to http://unlicense.org/

This package is a small part of an effort to explore and describe how computers can be used to make maps. For additional information on the complete project visit: http://computer-maps.sourceforge.net

Visit the author's page at: http://fredposp.users.sourceforge.net

This is free and unencumbered software released into the public domain.  For more information, please refer to <http://unlicense.org/>

Fred Pospeschil

Download Java Code Speed Test

Project detail and discuss

Get support

To join this project, please contact the project administrators of this project, as shown on the
 project summary page

 

Project Web Hosted by SourceForge.net

©Copyright 1999-2009 - Geeknet, Inc., All Rights Reserved

About - Legal - Help