edu.umd.cloud9.io
Class BenchmarkHashMapWritable

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

public class BenchmarkHashMapWritable
extends Object

Benchmark comparing HashMapWritable to Hadoop's native MapWritable. Sample output:

 Generating and serializing 100000 random HashMapWritables: 4.672 seconds
 Generating and serializing 100000 random MapWritables: 5.546 seconds
 Average size of each HashMapWritable: 664.77783
 Average size of each MapWritable: 747.4403
 Deserializing 100000 random MapWritables: 3.954 seconds
 Deserializing 100000 random MapWritables: 4.968 seconds
 


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