Class TestTypedSpeed
java.lang.Object
test.TestTypedSpeed
- All Implemented Interfaces:
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).
-
Field Summary
Fields inherited from interface XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected inttest()protected inttestTypedBooleanAttr(int reps) protected inttestTypedBooleanElem(int reps) protected inttestUntypedBooleanAttr(int reps) protected inttestUntypedBooleanElem(int reps)
-
Method Details
-
test
-
testUntypedBooleanAttr
-
testUntypedBooleanElem
-
testTypedBooleanAttr
-
testTypedBooleanElem
-
main
-