[jdom-interest] Thread questions regarding JDOM SAXBuiler?

Laurent Bihanic laurent.bihanic at atosorigin.com
Thu Sep 2 02:16:28 PDT 2004


Here are some more complete test results. These tests (1000 iterations) were 
run on a PowerBook G4 1.25GHz with the following JVM:
   java version "1.4.2_05"
   Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141)
   Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)

I ran the tests with the client and server JVMs and the results for the 
warm-up runs have been removed:

1. Client JVM
-------------

java -Xmx16m large.ThreadedReader
Reuse=true      size=1927       time: 8751
Reuse=false     size=1927       time: 34469

Reuse=true      size=21837      time: 226081
Reuse=false     size=21837      time: 242565

Reuse=true      size=43469      time: 370258
Reuse=false     size=43469      time: 347194

java -Xmx48m large.ThreadedReader
Reuse=true      size=1927       time: 11858
Reuse=false     size=1927       time: 33869

Reuse=true      size=21837      time: 180072
Reuse=false     size=21837      time: 216430

Reuse=true      size=43469      time: 368117
Reuse=false     size=43469      time: 363064

Reuse=true      size=325632     time: 1921942
Reuse=false     size=325632     time: 1858348

java -Xmx64m large.ThreadedReader
Reuse=true      size=1927       time: 8325
Reuse=false     size=1927       time: 34258

Reuse=true      size=21837      time: 197315
Reuse=false     size=21837      time: 227706

Reuse=true      size=43469      time: 354253
Reuse=false     size=43469      time: 357230

Reuse=true      size=325632     time: 1784903
Reuse=false     size=325632     time: 1721553


2. Server JVM
-------------

java -server -Xmx48m large.ThreadedReader
Reuse=true      size=1927       time: 5397
Reuse=false     size=1927       time: 21772

Reuse=true      size=21837      time: 55174
Reuse=false     size=21837      time: 70201

Reuse=true      size=43469      time: 141527
Reuse=false     size=43469      time: 149508

Reuse=true      size=325632     time: 1515216
Reuse=false     size=325632     time: 1885217

java -server -Xmx64m large.ThreadedReader
Reuse=true      size=1927       time: 5741
Reuse=false     size=1927       time: 21157

Reuse=true      size=21837      time: 58918
Reuse=false     size=21837      time: 70616

Reuse=true      size=43469      time: 160325
Reuse=false     size=43469      time: 177267

Reuse=true      size=325632     time: 1578141
Reuse=false     size=325632     time: 1610306

java -XX:+AggressiveHeap large.ThreadedReader
Reuse=true      size=1927       time: 6285
Reuse=false     size=1927       time: 21567

Reuse=true      size=21837      time: 54959
Reuse=false     size=21837      time: 74266

Reuse=true      size=43469      time: 94196
Reuse=false     size=43469      time: 113176

Reuse=true      size=325632     time: 725134
Reuse=false     size=325632     time: 744002


More information about the jdom-interest mailing list