Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] ClassesLoader.java (for benchmarking class loading)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Janek Bogucki <janekdb AT yahoo.co.uk>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] ClassesLoader.java (for benchmarking class loading)
  • Date: Wed, 24 Mar 2004 21:36:26 +0000 (GMT)

--- Janek Bogucki <janekdb AT yahoo.co.uk> wrote:
> but it doesn't seem to have attached properly. I'll post it inline later as
> the source is out of

This is it.

class ClassesLoader {

public static void main(String[] args) throws ClassNotFoundException {


long t = System.currentTimeMillis();

for(int i = 0 ; i < classes.length ; i++ ) {
Class clazz = Class.forName( classes [ i ] ) ;
}

System.out.println("millis: " + (System.currentTimeMillis() - t));
}

static String [] classes = {
"nu.xom.ProcessingInstruction",
"nu.xom.Node",
"nu.xom.Text",
"nu.xom.Attribute$Type",
"nu.xom.Attribute",
"nu.xom.DocType",
"nu.xom.Element",
"nu.xom.ParentNode",
"nu.xom.Document",
"nu.xom.Comment",
"nu.xom.Attributes",
"nu.xom.Namespaces",
"nu.xom.Elements",
"nu.xom.Nodes",
"nu.xom.ParsingException",
"nu.xom.converters.SAXConverter",
"nu.xom.converters.DOMConverter",
"nu.xom.Builder$ValidityRequired",
"nu.xom.Builder$NamespaceWellformednessRequired",
"nu.xom.Builder$1",
"nu.xom.Builder",
"nu.xom.NodeFactory",
"nu.xom.ValidityException",
"nu.xom.Serializer",
"nu.xom.TextWriter",
"nu.xom.xinclude.XIncludeException",
"nu.xom.xinclude.XPointer",
"nu.xom.xinclude.XPointerSyntaxException",
"nu.xom.xinclude.XPointerException",
"nu.xom.xinclude.XPointerResourceException",
"nu.xom.xinclude.NoIncludeLocationException",
"nu.xom.xinclude.BadParseAttributeException",
"nu.xom.xinclude.XIncluder",
"nu.xom.xinclude.InclusionLoopException",
"nu.xom.xinclude.MisplacedFallbackException",
"nu.xom.xinclude.EncodingHeuristics",
"nu.xom.xslt.XSLException",
"nu.xom.xslt.XSLTransform",
"nu.xom.xslt.XOMResult",
"nu.xom.xslt.XOMSource",
"nu.xom.xslt.XSLTHandler",
"nu.xom.XMLException",
"nu.xom.canonical.Canonicalizer$AttributeComparator",
"nu.xom.canonical.Canonicalizer$CanonicalXMLSerializer",
"nu.xom.canonical.Canonicalizer$1",
"nu.xom.canonical.Canonicalizer",
"nu.xom.Latin3Writer",
"nu.xom.Latin8Writer",
"nu.xom.NoSuchChildException",
"nu.xom.NonVerifyingFactory",
"nu.xom.NoSuchAttributeException",
"nu.xom.Verifier",
"nu.xom.IllegalNameException",
"nu.xom.IllegalDataException",
"nu.xom.WellformednessException",
"nu.xom.Latin6Writer",
"nu.xom.IllegalAddException",
"nu.xom.IllegalTargetException",
"nu.xom.Latin1Writer",
"nu.xom.UCSWriter",
"nu.xom.Latin4Writer",
"nu.xom.UnicodeWriter",
"nu.xom.Latin9Writer",
"nu.xom.ISOCyrillicWriter",
"nu.xom.ISOThaiWriter",
"nu.xom.ISOArabicWriter",
"nu.xom.Info",
"nu.xom.TextWriterFactory",
"nu.xom.ISOGreekWriter",
"nu.xom.MultipleParentException",
"nu.xom.ASCIIWriter",
"nu.xom.Latin2Writer",
"nu.xom.Latin7Writer",
"nu.xom.CycleException",
"nu.xom.ISOHebrewWriter",
"nu.xom.EBCDICWriter",
"nu.xom.UnavailableCharacterException",
"nu.xom.xerces.XML1_0ParserConfiguration",
"nu.xom.CDATASection",
"nu.xom.MalformedURIException",
"nu.xom.Latin10Writer",
"nu.xom.URIUtil",
"nu.xom.IllegalCharacterDataException",
"nu.xom.XOMHandler",
"nu.xom.Latin5Writer",
"nu.xom.NamespaceConflictException"
};

}






___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html




Archive powered by MHonArc 2.6.24.

Top of Page