edu.umd.cloud9.io
Class BenchmarkPairOfInts

java.lang.Object
  extended by edu.umd.cloud9.io.BenchmarkPairOfInts

public class BenchmarkPairOfInts
extends Object

Benchmark for PairOfInts. Does the following:

See below for results comparing this benchmark to BenchmarkTuple and BenchmarkJSON (on the equivalent task). All times measured in seconds.

PairOfInts Tuple JSON
Creating objects 0.609 3.319 4.472
Cloning objects 0.576 2.303 4.972
Sorting list 1.681 7.591 11.644

Times were arrived at by taking the average of 10 trials. Experiments were conducted on Aug 6, 2008 on a 2.6GHz MacBook Pro running Windows XP and Cygwin.


Method Summary
static void main(String[] args)
          Runs this benchmark.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws Exception
Runs this benchmark.

Throws:
Exception