|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.io.BenchmarkPairOfInts
public class BenchmarkPairOfInts
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 |
|---|
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||