Nux 1.6

nux.xom.sandbox
Class BuilderPoolBenchmark

java.lang.Object
  extended by nux.xom.sandbox.BuilderPoolBenchmark

public final class BuilderPoolBenchmark
extends Object

Benchmark / stress test of BuilderPool.

Running this bench for our intended target usages indicates that W3C Schema Validation of small files with medium complex schemas is about 10-20 times faster when pooled, and that parsing without validation of said files is about 3-10 times faster when pooled (JDK 1.5 server VM).

As always, your usecases and mileage may substantially vary - check against your own applications.

Example usage:

 java nux.xom.sandbox.BuilderPoolBenchmark pooled examples/ok2.xml validateschema 50000 nomemory 1 p2pio.xsd http://dsd.lbl.gov/p2pio-1.0
 java nux.xom.sandbox.BuilderPoolBenchmark nopooled examples/ok2.xml validateschema 50000 nomemory 1 p2pio.xsd http://dsd.lbl.gov/p2pio-1.0
 
 java nux.xom.sandbox.BuilderPoolBenchmark pooled examples/ok2.xml novalidateschema 100000 memory 1 p2pio.xsd http://dsd.lbl.gov/p2pio-1.0
 java nux.xom.sandbox.BuilderPoolBenchmark nopooled examples/ok2.xml novalidateschema 100000 memory 1 p2pio.xsd http://dsd.lbl.gov/p2pio-1.0
 

Author:
whoschek.AT.lbl.DOT.gov, $Author: hoschek3 $

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

Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

Nux 1.6