Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Document models, Part 1: Performance

A look at features and performance of XML document models in Java

Return to article

Average versus best times

The charts shown in the Java document-model performance article use the best time measured for each test. The test program also computes average times, but the average times tend to vary a lot more than the best times depending on the documents used, the number of test passes, and the order of the documents.

The two figures below show how the average times for one test run compared with the best time results for the same test run. The average time values use the default test program settings, which exclude the first pass of each test on each document. The first pass time is usually much higher than the average time, due to HotSpot optimization behavior.


Figure 1. Average document build time
Document build time chart

Figure 2. Best document build time
Document build time chart

Note that the scales differ in these charts, with the average times generally about 20% to 30% higher than the best times. The relative performance of the different models is about the same, though, no matter whether average or best time is used for the comparison.

Return to article