test
Class TestTypedSpeed
java.lang.Object
test.TestTypedSpeed
- All Implemented Interfaces:
- XMLStreamConstants
public class TestTypedSpeed
- extends Object
- implements XMLStreamConstants
Simple typed information access stress test, useful for profiling, as well
as for
quickly checking high-level performance effects of changes (albeit
not very accurately, obviously -- need longer running composite
tests for such verifications).
Type of data is auto-detected, and is assumed to be homogenous. Basically,
data is either within attributes, or as element content, but not both.
In either case structure should be shallow, with the root and only
immediate leaf-level elements containing attribute or element data.
Type of this data is auto-detected from the first instance; data must
be in canonical format to be properly recognized (non-first values
can be non-canonical).
Fields inherited from interface javax.xml.stream.XMLStreamConstants |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
test
protected int test()
throws Exception
- Throws:
Exception
testUntypedBooleanAttr
protected int testUntypedBooleanAttr(int reps)
throws Exception
- Throws:
Exception
testUntypedBooleanElem
protected int testUntypedBooleanElem(int reps)
throws Exception
- Throws:
Exception
testTypedBooleanAttr
protected int testTypedBooleanAttr(int reps)
throws Exception
- Throws:
Exception
testTypedBooleanElem
protected int testTypedBooleanElem(int reps)
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2012 Fasterxml.com. All Rights Reserved.