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).
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | MAX_RUN_TIME
Let's keep per-run times below 300 milliseconds |
| pack-priv final ByteArrayInputStream | |
| pack-priv static final int | MIN_RUN_TIME
Let's keep per-run times above 50 milliseconds |
| pack-priv final XMLInputFactory | |
| pack-priv int | |
| pack-priv boolean | mUseAttr
Data in attributes? |
| private int | REPS
Number of repetitions to run per test. |
| private static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv XMLStreamReader2 | |
| private String | |
| public static void | |
| pack-priv static byte[] | |
| protected int | |
| private int | |
| protected int | |
| protected int | |
| protected int | |
| protected int |
| MAX_RUN_TIME | back to summary |
|---|---|
| pack-priv static final int MAX_RUN_TIME Let's keep per-run times below 300 milliseconds | |
| mIn | back to summary |
|---|---|
| pack-priv final ByteArrayInputStream mIn | |
| MIN_RUN_TIME | back to summary |
|---|---|
| pack-priv static final int MIN_RUN_TIME Let's keep per-run times above 50 milliseconds | |
| mInputFactory | back to summary |
|---|---|
| pack-priv final XMLInputFactory mInputFactory | |
| mType | back to summary |
|---|---|
| pack-priv int mType | |
| mUseAttr | back to summary |
|---|---|
| pack-priv boolean mUseAttr Data in attributes? If true, yes; if no, in elements | |
| REPS | back to summary |
|---|---|
| private int REPS Number of repetitions to run per test. Dynamically variable, based on observed runtime, to try to keep it high enough. | |
| TEST_PER_GC | back to summary |
|---|---|
| private static final int TEST_PER_GC | |
| TYPE_BOOLEAN | back to summary |
|---|---|
| pack-priv static final int TYPE_BOOLEAN | |
| TYPE_INT | back to summary |
|---|---|
| pack-priv static final int TYPE_INT | |
| TestTypedSpeed | back to summary |
|---|---|
| private TestTypedSpeed(byte[] data) | |
| constructAndFindRoot | back to summary |
|---|---|
| pack-priv XMLStreamReader2 constructAndFindRoot() throws XMLStreamException | |
| findFirstValue | back to summary |
|---|---|
| private String findFirstValue(InputStream in) throws XMLStreamException | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws Exception | |
| readData | back to summary |
|---|---|
| pack-priv static byte[] readData(File file) throws IOException | |
| test | back to summary |
|---|---|
| protected int test() throws Exception | |
| test2 | back to summary |
|---|---|
| private int test2() throws Exception | |
| testTypedBooleanAttr | back to summary |
|---|---|
| protected int testTypedBooleanAttr(int reps) throws Exception | |
| testTypedBooleanElem | back to summary |
|---|---|
| protected int testTypedBooleanElem(int reps) throws Exception | |
| testUntypedBooleanAttr | back to summary |
|---|---|
| protected int testUntypedBooleanAttr(int reps) throws Exception | |
| testUntypedBooleanElem | back to summary |
|---|---|
| protected int testUntypedBooleanElem(int reps) throws Exception | |