Class N04_Part1_Listing5

java.lang.Object
  extended by N03_Part1_Listing4
      extended by N04_Part1_Listing5

public class N04_Part1_Listing5
extends N03_Part1_Listing4

For the article Robust Java benchmarking, Part 1: Issues, contains the code relevant to Listing 5.

Author:
Brent Boyer

Field Summary
 
Fields inherited from class N03_Part1_Listing4
array
 
Constructor Summary
N04_Part1_Listing5()
           
 
Method Summary
protected static int add(int result)
           
static void main(String[] args)
          Results on 2008-03-27 on my 2.2 GHz Intel Core 2 Duo E4500 machine (server jvm): Execution time = 10.81... seconds to compute result = 1580674560 Execution time = 10.79... seconds to compute result = 1580674560 Execution time = 10.80... seconds to compute result = 1580674560
protected static int xor(int result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

N04_Part1_Listing5

public N04_Part1_Listing5()
Method Detail

main

public static void main(String[] args)
Results on 2008-03-27 on my 2.2 GHz Intel Core 2 Duo E4500 machine (server jvm):

                Execution time = 10.81... seconds to compute result = 1580674560
                Execution time = 10.79... seconds to compute result = 1580674560
                Execution time = 10.80... seconds to compute result = 1580674560
        


add

protected static int add(int result)

xor

protected static int xor(int result)