xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ce...@apache.org
Subject svn commit: r233577 [1/2] - in /xmlbeans/trunk/test/perf: ./ bin/ src/org/apache/xmlbeans/test/performance/jaxb/ src/org/apache/xmlbeans/test/performance/svn/
Date Fri, 19 Aug 2005 23:32:22 GMT
Author: cezar
Date: Fri Aug 19 16:32:14 2005
New Revision: 233577

URL: http://svn.apache.org/viewcvs?rev=233577&view=rev
Log:
Adding files to the performance test suite for gathering v2 release numbers. Now v1 and v2 in the scripts and source files in the suite refer to XmlBeans versions 1.03 and 2.00 and svn refers to current svn repository snapshot from where the tests are run. Also includes a few other changes to the performance test build process

Added:
    xmlbeans/trunk/test/perf/bin/run_all_nonmemory.bat
    xmlbeans/trunk/test/perf/bin/run_svn.bat
    xmlbeans/trunk/test/perf/bin/run_svn.sh
    xmlbeans/trunk/test/perf/bin/run_svn_nonmemory.bat
    xmlbeans/trunk/test/perf/bin/run_v1_nonmemory.bat
    xmlbeans/trunk/test/perf/bin/run_v2_nonmemory.bat
    xmlbeans/trunk/test/perf/bin/run_xerces_nonmemory.bat
    xmlbeans/trunk/test/perf/bin/svn.bat
    xmlbeans/trunk/test/perf/bin/svn.sh
    xmlbeans/trunk/test/perf/download.properties
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/BisLoadSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetAttributeSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetElementSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetAttributeSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetElementSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorWalkSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/DomWalkNLSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/DomWalkSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/MaxMemUntypedBisLoadSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/NPrimTopDownSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POGetCustNameSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POGetSetGetCustNameSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POQueryLineItemsSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POReadAllSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POReadOneSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POSelectLineItemsSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POTopDownSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POTopDownSaveSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/POValidateXmlObjSVN.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/PrimTopDownSVN.java
Modified:
    xmlbeans/trunk/test/perf/bin/run_all.bat
    xmlbeans/trunk/test/perf/bin/run_all.sh
    xmlbeans/trunk/test/perf/build.xml
    xmlbeans/trunk/test/perf/results.xml
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/NPrimTopDownJaxb.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownJaxb.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownSaveJaxb.java
    xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/PrimTopDownJaxb.java

Modified: xmlbeans/trunk/test/perf/bin/run_all.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_all.bat?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_all.bat (original)
+++ xmlbeans/trunk/test/perf/bin/run_all.bat Fri Aug 19 16:32:14 2005
@@ -1,6 +1,7 @@
-call run_castor.bat
-call run_jibx.bat
-call run_xerces.bat
-call run_jaxb.bat
-call run_v1.bat
-call run_v2.bat
+call run_v2.bat
+call run_v1.bat
+call run_svn.bat
+call run_castor.bat
+call run_jaxb.bat
+call run_jibx.bat
+call run_xerces.bat

Modified: xmlbeans/trunk/test/perf/bin/run_all.sh
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_all.sh?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_all.sh (original)
+++ xmlbeans/trunk/test/perf/bin/run_all.sh Fri Aug 19 16:32:14 2005
@@ -1,6 +1,7 @@
-sh ./run_v2.sh
-sh ./run_v1.sh
-sh ./run_castor.sh
-sh ./run_jaxb.sh
-sh ./run_jibx.sh
-sh ./run_xerces.sh
+sh ./run_v2.sh
+sh ./run_v1.sh
+sh ./run_svn.sh
+sh ./run_castor.sh
+sh ./run_jaxb.sh
+sh ./run_jibx.sh
+sh ./run_xerces.sh

Added: xmlbeans/trunk/test/perf/bin/run_all_nonmemory.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_all_nonmemory.bat?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_all_nonmemory.bat (added)
+++ xmlbeans/trunk/test/perf/bin/run_all_nonmemory.bat Fri Aug 19 16:32:14 2005
@@ -0,0 +1,6 @@
+call run_v1_nonmemory.bat
+call run_v2_nonmemory.bat
+call run_svn_nonmemory.bat
+call run_jaxb_nonmemory.bat
+call run_jibx.bat
+call run_xerces_nonmemory.bat

Added: xmlbeans/trunk/test/perf/bin/run_svn.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_svn.bat?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_svn.bat (added)
+++ xmlbeans/trunk/test/perf/bin/run_svn.bat Fri Aug 19 16:32:14 2005
@@ -0,0 +1,93 @@
+call svn.bat POReadAllSVN filename 1 
+call svn.bat POReadAllSVN filename 2 
+call svn.bat POReadAllSVN filename 3 
+call svn.bat POReadAllSVN filename 4 
+call svn.bat POReadAllSVN filename 5 
+call svn.bat POReadAllSVN filename 6 
+call svn.bat POReadAllSVN filename 7 
+call svn.bat POReadOneSVN filename 1
+call svn.bat POReadOneSVN filename 2
+call svn.bat POReadOneSVN filename 3
+call svn.bat POReadOneSVN filename 4
+call svn.bat POReadOneSVN filename 5
+call svn.bat POReadOneSVN filename 6
+call svn.bat POReadOneSVN filename 7
+call svn.bat POGetCustNameSVN filename 1
+call svn.bat POGetCustNameSVN filename 2
+call svn.bat POGetCustNameSVN filename 3
+call svn.bat POGetCustNameSVN filename 4
+call svn.bat POGetCustNameSVN filename 5
+call svn.bat POGetCustNameSVN filename 6
+call svn.bat POGetCustNameSVN filename 7
+call svn.bat POGetSetGetCustNameSVN filename 1
+call svn.bat POGetSetGetCustNameSVN filename 2
+call svn.bat POGetSetGetCustNameSVN filename 3
+call svn.bat POGetSetGetCustNameSVN filename 4
+call svn.bat POGetSetGetCustNameSVN filename 5
+call svn.bat POGetSetGetCustNameSVN filename 6
+call svn.bat POGetSetGetCustNameSVN filename 7
+call svn.bat POSelectLineItemsSVN filename 1
+call svn.bat POSelectLineItemsSVN filename 2
+call svn.bat POSelectLineItemsSVN filename 3
+call svn.bat POSelectLineItemsSVN filename 4
+call svn.bat POSelectLineItemsSVN filename 5
+call svn.bat POSelectLineItemsSVN filename 6
+call svn.bat POSelectLineItemsSVN filename 7
+call svn.bat POQueryLineItemsSVN filename 1
+call svn.bat POQueryLineItemsSVN filename 2
+call svn.bat POQueryLineItemsSVN filename 3
+call svn.bat POQueryLineItemsSVN filename 4
+call svn.bat POQueryLineItemsSVN filename 5
+call svn.bat POQueryLineItemsSVN filename 6
+call svn.bat POQueryLineItemsSVN filename 7
+call svn.bat POTopDownSVN
+call svn.bat POTopDownSaveSVN
+call svn.bat POValidateXmlObjSVN
+call svn.bat PrimTopDownSVN
+call svn.bat NPrimTopDownSVN
+call svn.bat CursorWalkSVN flavor deep-attributes
+call svn.bat CursorWalkSVN flavor deep-elements
+call svn.bat CursorWalkSVN flavor wide-attributes
+call svn.bat CursorWalkSVN flavor wide-elements
+call svn.bat CursorWalkSVN flavor wide-text
+call svn.bat CursorGetAttributeSVN flavor deep-attributes
+call svn.bat CursorGetAttributeSVN flavor wide-attributes
+call svn.bat CursorGetSetGetAttributeSVN flavor deep-attributes
+call svn.bat CursorGetSetGetAttributeSVN flavor wide-attributes
+call svn.bat CursorGetElementSVN
+call svn.bat CursorGetSetGetElementSVN
+call svn.bat BisLoadSVN flavor deep-attributes
+call svn.bat BisLoadSVN flavor deep-elements
+call svn.bat BisLoadSVN flavor wide-attributes
+call svn.bat BisLoadSVN flavor wide-elements
+call svn.bat BisLoadSVN flavor wide-text
+call svn.bat DomWalkSVN flavor deep-attributes
+call svn.bat DomWalkSVN flavor deep-elements
+call svn.bat DomWalkSVN flavor wide-attributes
+call svn.bat DomWalkSVN flavor wide-elements
+call svn.bat DomWalkSVN flavor wide-text
+call svn.bat DomWalkNLSVN flavor deep-attributes
+call svn.bat DomWalkNLSVN flavor deep-elements
+call svn.bat DomWalkNLSVN flavor wide-attributes
+call svn.bat DomWalkNLSVN flavor wide-elements
+call svn.bat DomWalkNLSVN flavor wide-text
+call svn.bat MaxMemUntypedBisLoadSVN memory 64 flavor deep-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 128 flavor deep-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 256 flavor deep-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 512 flavor deep-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 64 flavor deep-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 128 flavor deep-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 256 flavor deep-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 512 flavor deep-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 64 flavor wide-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 128 flavor wide-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 256 flavor wide-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 512 flavor wide-attributes
+call svn.bat MaxMemUntypedBisLoadSVN memory 64 flavor wide-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 128 flavor wide-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 256 flavor wide-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 512 flavor wide-elements
+call svn.bat MaxMemUntypedBisLoadSVN memory 64 flavor wide-text
+call svn.bat MaxMemUntypedBisLoadSVN memory 128 flavor wide-text
+call svn.bat MaxMemUntypedBisLoadSVN memory 256 flavor wide-text
+call svn.bat MaxMemUntypedBisLoadSVN memory 512 flavor wide-text

Added: xmlbeans/trunk/test/perf/bin/run_svn.sh
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_svn.sh?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_svn.sh (added)
+++ xmlbeans/trunk/test/perf/bin/run_svn.sh Fri Aug 19 16:32:14 2005
@@ -0,0 +1,93 @@
+sh ./svn.sh POReadAllSVN 1 
+sh ./svn.sh POReadAllSVN 2 
+sh ./svn.sh POReadAllSVN 3 
+sh ./svn.sh POReadAllSVN 4 
+sh ./svn.sh POReadAllSVN 5 
+sh ./svn.sh POReadAllSVN 6 
+sh ./svn.sh POReadAllSVN 7 
+sh ./svn.sh POReadOneSVN 1
+sh ./svn.sh POReadOneSVN 2 
+sh ./svn.sh POReadOneSVN 3
+sh ./svn.sh POReadOneSVN 4
+sh ./svn.sh POReadOneSVN 5 
+sh ./svn.sh POReadOneSVN 6 
+sh ./svn.sh POReadOneSVN 7 
+sh ./svn.sh POGetCustNameSVN filename 1
+sh ./svn.sh POGetCustNameSVN filename 2
+sh ./svn.sh POGetCustNameSVN filename 3
+sh ./svn.sh POGetCustNameSVN filename 4
+sh ./svn.sh POGetCustNameSVN filename 5
+sh ./svn.sh POGetCustNameSVN filename 6
+sh ./svn.sh POGetCustNameSVN filename 7
+sh ./svn.sh POGetSetGetCustNameSVN filename 1
+sh ./svn.sh POGetSetGetCustNameSVN filename 2
+sh ./svn.sh POGetSetGetCustNameSVN filename 3
+sh ./svn.sh POGetSetGetCustNameSVN filename 4
+sh ./svn.sh POGetSetGetCustNameSVN filename 5
+sh ./svn.sh POGetSetGetCustNameSVN filename 6
+sh ./svn.sh POGetSetGetCustNameSVN filename 7
+sh ./svn.sh POSelectLineItemsSVN filename 1
+sh ./svn.sh POSelectLineItemsSVN filename 2
+sh ./svn.sh POSelectLineItemsSVN filename 3
+sh ./svn.sh POSelectLineItemsSVN filename 4
+sh ./svn.sh POSelectLineItemsSVN filename 5
+sh ./svn.sh POSelectLineItemsSVN filename 6
+sh ./svn.sh POSelectLineItemsSVN filename 7
+sh ./svn.sh POQueryLineItemsSVN filename 1
+sh ./svn.sh POQueryLineItemsSVN filename 2
+sh ./svn.sh POQueryLineItemsSVN filename 3
+sh ./svn.sh POQueryLineItemsSVN filename 4
+sh ./svn.sh POQueryLineItemsSVN filename 5
+sh ./svn.sh POQueryLineItemsSVN filename 6
+sh ./svn.sh POQueryLineItemsSVN filename 7
+sh ./svn.sh POTopDownSVN
+sh ./svn.sh POTopDownSaveSVN
+sh ./svn.sh POValidateXmlObjSVN
+sh ./svn.sh PrimTopDownSVN
+sh ./svn.sh NPrimTopDownSVN
+sh ./svn.sh CursorWalkSVN deep-attributes
+sh ./svn.sh CursorWalkSVN deep-elements
+sh ./svn.sh CursorWalkSVN wide-attributes
+sh ./svn.sh CursorWalkSVN wide-elements
+sh ./svn.sh CursorWalkSVN wide-text
+sh ./svn.sh CursorGetAttributeSVN deep-attributes
+sh ./svn.sh CursorGetAttributeSVN wide-attributes
+sh ./svn.sh CursorGetSetGetAttributeSVN deep-attributes
+sh ./svn.sh CursorGetSetGetAttributeSVN wide-attributes
+sh ./svn.sh CursorGetElementSVN
+sh ./svn.sh CursorGetSetGetElementSVN
+sh ./svn.sh BisLoadSVN deep-attributes
+sh ./svn.sh BisLoadSVN deep-elements
+sh ./svn.sh BisLoadSVN wide-attributes
+sh ./svn.sh BisLoadSVN wide-elements
+sh ./svn.sh BisLoadSVN wide-text
+sh ./svn.sh DomWalkSVN deep-attributes
+sh ./svn.sh DomWalkSVN deep-elements
+sh ./svn.sh DomWalkSVN wide-attributes
+sh ./svn.sh DomWalkSVN wide-elements 
+sh ./svn.sh DomWalkSVN wide-text
+sh ./svn.sh DomWalkNLSVN deep-attributes
+sh ./svn.sh DomWalkNLSVN deep-elements
+sh ./svn.sh DomWalkNLSVN wide-attributes
+sh ./svn.sh DomWalkNLSVN wide-elements 
+sh ./svn.sh DomWalkNLSVN wide-text
+sh svn.sh MaxMemUntypedBisLoadSVN memory 64 flavor deep-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 128 flavor deep-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 256 flavor deep-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 512 flavor deep-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 64 flavor deep-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 128 flavor deep-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 256 flavor deep-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 512 flavor deep-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 64 flavor wide-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 128 flavor wide-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 256 flavor wide-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 512 flavor wide-attributes
+sh svn.sh MaxMemUntypedBisLoadSVN memory 64 flavor wide-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 128 flavor wide-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 256 flavor wide-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 512 flavor wide-elements
+sh svn.sh MaxMemUntypedBisLoadSVN memory 64 flavor wide-text
+sh svn.sh MaxMemUntypedBisLoadSVN memory 128 flavor wide-text
+sh svn.sh MaxMemUntypedBisLoadSVN memory 256 flavor wide-text
+sh svn.sh MaxMemUntypedBisLoadSVN memory 512 flavor wide-text

Added: xmlbeans/trunk/test/perf/bin/run_svn_nonmemory.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_svn_nonmemory.bat?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_svn_nonmemory.bat (added)
+++ xmlbeans/trunk/test/perf/bin/run_svn_nonmemory.bat Fri Aug 19 16:32:14 2005
@@ -0,0 +1,73 @@
+call svn.bat POReadAllSVN filename 1 
+call svn.bat POReadAllSVN filename 2 
+call svn.bat POReadAllSVN filename 3 
+call svn.bat POReadAllSVN filename 4 
+call svn.bat POReadAllSVN filename 5 
+call svn.bat POReadAllSVN filename 6 
+call svn.bat POReadAllSVN filename 7 
+call svn.bat POReadOneSVN filename 1
+call svn.bat POReadOneSVN filename 2
+call svn.bat POReadOneSVN filename 3
+call svn.bat POReadOneSVN filename 4
+call svn.bat POReadOneSVN filename 5
+call svn.bat POReadOneSVN filename 6
+call svn.bat POReadOneSVN filename 7
+call svn.bat POGetCustNameSVN filename 1
+call svn.bat POGetCustNameSVN filename 2
+call svn.bat POGetCustNameSVN filename 3
+call svn.bat POGetCustNameSVN filename 4
+call svn.bat POGetCustNameSVN filename 5
+call svn.bat POGetCustNameSVN filename 6
+call svn.bat POGetCustNameSVN filename 7
+call svn.bat POGetSetGetCustNameSVN filename 1
+call svn.bat POGetSetGetCustNameSVN filename 2
+call svn.bat POGetSetGetCustNameSVN filename 3
+call svn.bat POGetSetGetCustNameSVN filename 4
+call svn.bat POGetSetGetCustNameSVN filename 5
+call svn.bat POGetSetGetCustNameSVN filename 6
+call svn.bat POGetSetGetCustNameSVN filename 7
+call svn.bat POSelectLineItemsSVN filename 1
+call svn.bat POSelectLineItemsSVN filename 2
+call svn.bat POSelectLineItemsSVN filename 3
+call svn.bat POSelectLineItemsSVN filename 4
+call svn.bat POSelectLineItemsSVN filename 5
+call svn.bat POSelectLineItemsSVN filename 6
+call svn.bat POSelectLineItemsSVN filename 7
+call svn.bat POQueryLineItemsSVN filename 1
+call svn.bat POQueryLineItemsSVN filename 2
+call svn.bat POQueryLineItemsSVN filename 3
+call svn.bat POQueryLineItemsSVN filename 4
+call svn.bat POQueryLineItemsSVN filename 5
+call svn.bat POQueryLineItemsSVN filename 6
+call svn.bat POQueryLineItemsSVN filename 7
+call svn.bat POTopDownSVN
+call svn.bat POTopDownSaveSVN
+call svn.bat POValidateXmlObjSVN
+call svn.bat PrimTopDownSVN
+call svn.bat NPrimTopDownSVN
+call svn.bat CursorWalkSVN flavor deep-attributes
+call svn.bat CursorWalkSVN flavor deep-elements
+call svn.bat CursorWalkSVN flavor wide-attributes
+call svn.bat CursorWalkSVN flavor wide-elements
+call svn.bat CursorWalkSVN flavor wide-text
+call svn.bat CursorGetAttributeSVN flavor deep-attributes
+call svn.bat CursorGetAttributeSVN flavor wide-attributes
+call svn.bat CursorGetSetGetAttributeSVN flavor deep-attributes
+call svn.bat CursorGetSetGetAttributeSVN flavor wide-attributes
+call svn.bat CursorGetElementSVN
+call svn.bat CursorGetSetGetElementSVN
+call svn.bat BisLoadSVN flavor deep-attributes
+call svn.bat BisLoadSVN flavor deep-elements
+call svn.bat BisLoadSVN flavor wide-attributes
+call svn.bat BisLoadSVN flavor wide-elements
+call svn.bat BisLoadSVN flavor wide-text
+call svn.bat DomWalkSVN flavor deep-attributes
+call svn.bat DomWalkSVN flavor deep-elements
+call svn.bat DomWalkSVN flavor wide-attributes
+call svn.bat DomWalkSVN flavor wide-elements
+call svn.bat DomWalkSVN flavor wide-text
+call svn.bat DomWalkNLSVN flavor deep-attributes
+call svn.bat DomWalkNLSVN flavor deep-elements
+call svn.bat DomWalkNLSVN flavor wide-attributes
+call svn.bat DomWalkNLSVN flavor wide-elements
+call svn.bat DomWalkNLSVN flavor wide-text

Added: xmlbeans/trunk/test/perf/bin/run_v1_nonmemory.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_v1_nonmemory.bat?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_v1_nonmemory.bat (added)
+++ xmlbeans/trunk/test/perf/bin/run_v1_nonmemory.bat Fri Aug 19 16:32:14 2005
@@ -0,0 +1,66 @@
+call v1.bat POReadAllV1 filename 1 
+call v1.bat POReadAllV1 filename 2 
+call v1.bat POReadAllV1 filename 3 
+call v1.bat POReadAllV1 filename 4 
+call v1.bat POReadAllV1 filename 5 
+call v1.bat POReadAllV1 filename 6 
+call v1.bat POReadAllV1 filename 7 
+call v1.bat POReadOneV1 filename 1
+call v1.bat POReadOneV1 filename 2
+call v1.bat POReadOneV1 filename 3
+call v1.bat POReadOneV1 filename 4
+call v1.bat POReadOneV1 filename 5
+call v1.bat POReadOneV1 filename 6
+call v1.bat POReadOneV1 filename 7
+call v1.bat POGetCustNameV1 filename 1
+call v1.bat POGetCustNameV1 filename 2
+call v1.bat POGetCustNameV1 filename 3
+call v1.bat POGetCustNameV1 filename 4
+call v1.bat POGetCustNameV1 filename 5
+call v1.bat POGetCustNameV1 filename 6
+call v1.bat POGetCustNameV1 filename 7
+call v1.bat POGetSetGetCustNameV1 filename 1
+call v1.bat POGetSetGetCustNameV1 filename 2
+call v1.bat POGetSetGetCustNameV1 filename 3
+call v1.bat POGetSetGetCustNameV1 filename 4
+call v1.bat POGetSetGetCustNameV1 filename 5
+call v1.bat POGetSetGetCustNameV1 filename 6
+call v1.bat POGetSetGetCustNameV1 filename 7
+call v1.bat POSelectLineItemsV1 filename 1
+call v1.bat POSelectLineItemsV1 filename 2
+call v1.bat POSelectLineItemsV1 filename 3
+call v1.bat POSelectLineItemsV1 filename 4
+call v1.bat POSelectLineItemsV1 filename 5
+call v1.bat POSelectLineItemsV1 filename 6
+call v1.bat POSelectLineItemsV1 filename 7
+call v1.bat POTopDownV1
+call v1.bat POTopDownSaveV1
+call v1.bat POValidateXmlObjV1
+call v1.bat PrimTopDownV1
+call v1.bat NPrimTopDownV1
+call v1.bat CursorWalkV1 flavor deep-attributes
+call v1.bat CursorWalkV1 flavor deep-elements
+call v1.bat CursorWalkV1 flavor wide-attributes
+call v1.bat CursorWalkV1 flavor wide-elements
+call v1.bat CursorWalkV1 flavor wide-text
+call v1.bat CursorGetAttributeV1 flavor deep-attributes
+call v1.bat CursorGetAttributeV1 flavor wide-attributes
+call v1.bat CursorGetSetGetAttributeV1 flavor deep-attributes
+call v1.bat CursorGetSetGetAttributeV1 flavor wide-attributes
+call v1.bat CursorGetElementV1
+call v1.bat CursorGetSetGetElementV1
+call v1.bat BisLoadV1 flavor deep-attributes
+call v1.bat BisLoadV1 flavor deep-elements
+call v1.bat BisLoadV1 flavor wide-attributes
+call v1.bat BisLoadV1 flavor wide-elements
+call v1.bat BisLoadV1 flavor wide-text
+call v1.bat DomWalkV1 flavor deep-attributes
+call v1.bat DomWalkV1 flavor deep-elements
+call v1.bat DomWalkV1 flavor wide-attributes
+call v1.bat DomWalkV1 flavor wide-elements
+call v1.bat DomWalkV1 flavor wide-text
+call v1.bat DomWalkNLV1 flavor deep-attributes
+call v1.bat DomWalkNLV1 flavor deep-elements
+call v1.bat DomWalkNLV1 flavor wide-attributes
+call v1.bat DomWalkNLV1 flavor wide-elements
+call v1.bat DomWalkNLV1 flavor wide-text

Added: xmlbeans/trunk/test/perf/bin/run_v2_nonmemory.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_v2_nonmemory.bat?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_v2_nonmemory.bat (added)
+++ xmlbeans/trunk/test/perf/bin/run_v2_nonmemory.bat Fri Aug 19 16:32:14 2005
@@ -0,0 +1,73 @@
+call v2.bat POReadAllV2 filename 1 
+call v2.bat POReadAllV2 filename 2 
+call v2.bat POReadAllV2 filename 3 
+call v2.bat POReadAllV2 filename 4 
+call v2.bat POReadAllV2 filename 5 
+call v2.bat POReadAllV2 filename 6 
+call v2.bat POReadAllV2 filename 7 
+call v2.bat POReadOneV2 filename 1
+call v2.bat POReadOneV2 filename 2
+call v2.bat POReadOneV2 filename 3
+call v2.bat POReadOneV2 filename 4
+call v2.bat POReadOneV2 filename 5
+call v2.bat POReadOneV2 filename 6
+call v2.bat POReadOneV2 filename 7
+call v2.bat POGetCustNameV2 filename 1
+call v2.bat POGetCustNameV2 filename 2
+call v2.bat POGetCustNameV2 filename 3
+call v2.bat POGetCustNameV2 filename 4
+call v2.bat POGetCustNameV2 filename 5
+call v2.bat POGetCustNameV2 filename 6
+call v2.bat POGetCustNameV2 filename 7
+call v2.bat POGetSetGetCustNameV2 filename 1
+call v2.bat POGetSetGetCustNameV2 filename 2
+call v2.bat POGetSetGetCustNameV2 filename 3
+call v2.bat POGetSetGetCustNameV2 filename 4
+call v2.bat POGetSetGetCustNameV2 filename 5
+call v2.bat POGetSetGetCustNameV2 filename 6
+call v2.bat POGetSetGetCustNameV2 filename 7
+call v2.bat POSelectLineItemsV2 filename 1
+call v2.bat POSelectLineItemsV2 filename 2
+call v2.bat POSelectLineItemsV2 filename 3
+call v2.bat POSelectLineItemsV2 filename 4
+call v2.bat POSelectLineItemsV2 filename 5
+call v2.bat POSelectLineItemsV2 filename 6
+call v2.bat POSelectLineItemsV2 filename 7
+call v2.bat POQueryLineItemsV2 filename 1
+call v2.bat POQueryLineItemsV2 filename 2
+call v2.bat POQueryLineItemsV2 filename 3
+call v2.bat POQueryLineItemsV2 filename 4
+call v2.bat POQueryLineItemsV2 filename 5
+call v2.bat POQueryLineItemsV2 filename 6
+call v2.bat POQueryLineItemsV2 filename 7
+call v2.bat POTopDownV2
+call v2.bat POTopDownSaveV2
+call v2.bat POValidateXmlObjV2
+call v2.bat PrimTopDownV2
+call v2.bat NPrimTopDownV2
+call v2.bat CursorWalkV2 flavor deep-attributes
+call v2.bat CursorWalkV2 flavor deep-elements
+call v2.bat CursorWalkV2 flavor wide-attributes
+call v2.bat CursorWalkV2 flavor wide-elements
+call v2.bat CursorWalkV2 flavor wide-text
+call v2.bat CursorGetAttributeV2 flavor deep-attributes
+call v2.bat CursorGetAttributeV2 flavor wide-attributes
+call v2.bat CursorGetSetGetAttributeV2 flavor deep-attributes
+call v2.bat CursorGetSetGetAttributeV2 flavor wide-attributes
+call v2.bat CursorGetElementV2
+call v2.bat CursorGetSetGetElementV2
+call v2.bat BisLoadV2 flavor deep-attributes
+call v2.bat BisLoadV2 flavor deep-elements
+call v2.bat BisLoadV2 flavor wide-attributes
+call v2.bat BisLoadV2 flavor wide-elements
+call v2.bat BisLoadV2 flavor wide-text
+call v2.bat DomWalkV2 flavor deep-attributes
+call v2.bat DomWalkV2 flavor deep-elements
+call v2.bat DomWalkV2 flavor wide-attributes
+call v2.bat DomWalkV2 flavor wide-elements
+call v2.bat DomWalkV2 flavor wide-text
+call v2.bat DomWalkNLV2 flavor deep-attributes
+call v2.bat DomWalkNLV2 flavor deep-elements
+call v2.bat DomWalkNLV2 flavor wide-attributes
+call v2.bat DomWalkNLV2 flavor wide-elements
+call v2.bat DomWalkNLV2 flavor wide-text

Added: xmlbeans/trunk/test/perf/bin/run_xerces_nonmemory.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/run_xerces_nonmemory.bat?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/run_xerces_nonmemory.bat (added)
+++ xmlbeans/trunk/test/perf/bin/run_xerces_nonmemory.bat Fri Aug 19 16:32:14 2005
@@ -0,0 +1,53 @@
+call xerces.bat POReadAllXercesSax filename 1 
+call xerces.bat POReadAllXercesSax filename 2 
+call xerces.bat POReadAllXercesSax filename 3 
+call xerces.bat POReadAllXercesSax filename 4 
+call xerces.bat POReadAllXercesSax filename 5 
+call xerces.bat POReadAllXercesSax filename 6 
+call xerces.bat POReadAllXercesSax filename 7 
+call xerces.bat POReadOneXercesSax filename 1 
+call xerces.bat POReadOneXercesSax filename 2 
+call xerces.bat POReadOneXercesSax filename 3 
+call xerces.bat POReadOneXercesSax filename 4 
+call xerces.bat POReadOneXercesSax filename 5 
+call xerces.bat POReadOneXercesSax filename 6 
+call xerces.bat POReadOneXercesSax filename 7 
+call xerces.bat POTopDownXercesSax
+call xerces.bat BisLoadXercesSax flavor deep-attributes
+call xerces.bat BisLoadXercesSax flavor deep-elements
+call xerces.bat BisLoadXercesSax flavor wide-attributes
+call xerces.bat BisLoadXercesSax flavor wide-elements
+call xerces.bat BisLoadXercesSax flavor wide-text
+
+call xerces.bat POValidateXerces
+
+call xerces.bat POReadAllXercesDom filename 1 
+call xerces.bat POReadAllXercesDom filename 2 
+call xerces.bat POReadAllXercesDom filename 3 
+call xerces.bat POReadAllXercesDom filename 4 
+call xerces.bat POReadAllXercesDom filename 5 
+call xerces.bat POReadAllXercesDom filename 6 
+call xerces.bat POReadAllXercesDom filename 7 
+call xerces.bat POReadOneXercesDom filename 1 
+call xerces.bat POReadOneXercesDom filename 2 
+call xerces.bat POReadOneXercesDom filename 3 
+call xerces.bat POReadOneXercesDom filename 4 
+call xerces.bat POReadOneXercesDom filename 5 
+call xerces.bat POReadOneXercesDom filename 6 
+call xerces.bat POReadOneXercesDom filename 7 
+call xerces.bat POTopDownXercesDom
+call xerces.bat BisLoadXercesDom flavor deep-attributes
+call xerces.bat BisLoadXercesDom flavor deep-elements
+call xerces.bat BisLoadXercesDom flavor wide-attributes
+call xerces.bat BisLoadXercesDom flavor wide-elements
+call xerces.bat BisLoadXercesDom flavor wide-text 
+call xerces.bat DomWalkXerces flavor deep-attributes
+call xerces.bat DomWalkXerces flavor deep-elements
+call xerces.bat DomWalkXerces flavor wide-attributes
+call xerces.bat DomWalkXerces flavor wide-elements
+call xerces.bat DomWalkXerces flavor wide-text
+call xerces.bat DomWalkNLXerces flavor deep-attributes
+call xerces.bat DomWalkNLXerces flavor deep-elements
+call xerces.bat DomWalkNLXerces flavor wide-attributes
+call xerces.bat DomWalkNLXerces flavor wide-elements
+call xerces.bat DomWalkNLXerces flavor wide-text

Added: xmlbeans/trunk/test/perf/bin/svn.bat
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/svn.bat?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/svn.bat (added)
+++ xmlbeans/trunk/test/perf/bin/svn.bat Fri Aug 19 16:32:14 2005
@@ -0,0 +1,60 @@
+@echo off
+REM SUPPORTED PARAMS
+REM TODO: Make command line arg parsing cleaner
+set MEM=64
+set FLAVOR=
+set FILENAME=
+
+REM SCAN FIRST PARAM
+if not "%2"=="" goto %2
+goto default
+goto end
+:memory
+set MEM=%3
+goto end
+:flavor
+set FLAVOR=%3
+goto end
+:filename
+set FILENAME=%3
+goto end
+:default
+goto end
+:end
+
+REM SCAN SECOND PARAM
+if not "%4"=="" goto %4
+goto default
+goto end
+:memory
+set MEM=%5
+goto end
+:flavor
+set FLAVOR=%5
+goto end
+:filename
+set FILENAME=%5
+goto end
+:default
+goto end
+:end
+
+REM SCAN THIRD PARAM
+if not "%6"=="" goto %6
+goto default
+goto end
+:memory
+set MEM=%7
+goto end
+:flavor
+set FLAVOR=%7
+goto end
+:filename
+set FILENAME=%7
+goto end
+:default
+goto end
+:end
+
+echo on
+java -Xmx%MEM%m -classpath %XMLBEANS_PERFROOT%\build;%XMLBEANS_PERFROOT%\schema_build\svn-purchase-order.jar;%XMLBEANS_PERFROOT%\schema_build\svn-primitives.jar;%XMLBEANS_PERFROOT%\schema_build\svn-non-primitives.jar;%XMLBEANS_HOME%\build\lib\xbean.jar;%XMLBEANS_HOME%\build\lib\jsr173_api.jar;%XMLBEANS_HOME%\build\lib\saxon8.jar;%XMLBEANS_HOME%\build\lib\xbean_xpath.jar;%XMLBEANS_HOME%\external\lib\piccolo_apache_dist_20040629_svn.jar -DPERF_ROOT=%XMLBEANS_PERFROOT% org.apache.xmlbeans.test.performance.svn.%1 %FLAVOR% %FILENAME%

Added: xmlbeans/trunk/test/perf/bin/svn.sh
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/bin/svn.sh?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/bin/svn.sh (added)
+++ xmlbeans/trunk/test/perf/bin/svn.sh Fri Aug 19 16:32:14 2005
@@ -0,0 +1,25 @@
+
+export MEM=64
+export FLAVOR=
+export FILENAME=
+
+#scan first param
+case "$2" in
+	memory) export MEM=$3 ;;
+	flavor) export FLAVOR=$3 ;;
+	filename) export FILENAME=$3 ;;
+esac
+#scan second param
+case "$4" in
+	memory) export MEM=$5 ;;
+	flavor) export FLAVOR=$5 ;;
+	filename) export FILENAME=$5 ;;
+esac
+#scan third param
+case "$6" in
+	memory) export MEM=$7 ;;
+	flavor) export FLAVOR=$7 ;;
+	filename) export FILENAME=$7 ;;
+esac
+
+java -Xmx"$MEM"m -classpath $XMLBEANS_PERFROOT/build:$XMLBEANS_PERFROOT/schema_build/svn-purchase-order.jar:$XMLBEANS_PERFROOT/schema_build/svn-primitives.jar:$XMLBEANS_PERFROOT/schema_build/svn-non-primitives.jar:$XMLBEANS_HOME/build/lib/xbean.jar:$XMLBEANS_HOME/build/lib/jsr173_api.jar:$XMLBEANS_HOME/external/lib/piccolo_apache_dist_20040629_svn.jar -DPERF_ROOT=$XMLBEANS_PERFROOT org.apache.xmlbeans.test.performance.svn.$1 $FLAVOR $FILENAME 

Modified: xmlbeans/trunk/test/perf/build.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/build.xml?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/build.xml (original)
+++ xmlbeans/trunk/test/perf/build.xml Fri Aug 19 16:32:14 2005
@@ -1,10 +1,26 @@
+<!--
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
 <!-- build file -->
 <project name="xmlbeans-perf" default="usage">
-
+	
 	<target name="usage">
 		<echo>
 	Main Usage:
-	bootstrap - download and unzip benchmark jars - REQUIRED FOR BENCHMARKS
+	bootstrap - download and unzip benchmark jars - REQUIRED FOR BENCHMARKS 
 	[re]build.all - builds all schema jars and test classes
 	[re]build - builds test and tool classes only
 	[re]build.schema.jars - that's what it does :->
@@ -12,17 +28,21 @@
 	clean - clean test and tools classes
 	clean.schema.jars - clean schema jars
 
+	build.xmlbeans.perf - bootstrap, builds schema jars and tests classes for all XmlBeans releases 
+
 	Schema Builds:
-	v2.schema.jars - required for tools build and v2 perf
+	svn.schema.jars - required for tools build and svn perf
 	v1.schema.jars
+	v2.schema.jars
 	castor.schema.jars
 	jaxb.schema.jars
 	jibx.schema.jars
 
 	Perf Builds:
-	build.tools - perf tools
-	build.v2.perf
-	build.v1.perf
+	build.tools      - perf tools
+	build.svn.perf   - latest XMLBeans SVN snapshot
+	build.v1.perf    - XMLBeans v1
+	build.v2.perf    - XMLBeans v2
 	build.castor.perf
 	build.jaxb.perf
 	build.jibx.perf
@@ -33,8 +53,8 @@
 	<property environment="env"/>
 
 	<!-- root properties used for finding everything -->
-	<property name="xmlbeans.perf.root" value="${basedir}"/>
-	<property name="v2.xmlbeans.root" value="${env.XMLBEANS_HOME}"/>
+	<property name="xmlbeans.perf.root" value="${env.XMLBEANS_PERFROOT}"/>
+	<property name="svn.xmlbeans.root" value="${env.XMLBEANS_HOME}"/>
 
 	<property name="src.dir" value="${xmlbeans.perf.root}/src"/>
 	<property name="build.dir" value="${xmlbeans.perf.root}/build"/>
@@ -45,8 +65,9 @@
 	<property name="3rdparty.dir" value="${xmlbeans.perf.root}/3rdparty"/>
 
 	<!-- benchmark directories -->
-	<property name="v2.dir" value="${v2.xmlbeans.root}"/>
+	<property name="svn.dir" value="${svn.xmlbeans.root}"/>
   	<property name="v1.dir" value="${3rdparty.dir}/v1"/>
+	<property name="v2.dir" value="${3rdparty.dir}/v2"/>
 	<property name="castor.dir" value="${3rdparty.dir}/castor"/>
 	<property name="jibx.dir" value="${3rdparty.dir}/jibx"/>
 	<property name="xerces.dir" value="${3rdparty.dir}/xerces"/>
@@ -56,40 +77,41 @@
 	<!-- temp dirs for schema compilation outputs -->
 	<property name="v1.temp.dir" value="${temp.dir}/v1" />
 	<property name="v2.temp.dir" value="${temp.dir}/v2" />
+	<property name="svn.temp.dir" value="${temp.dir}/svn" />
 	<property name="castor.temp.dir" value="${temp.dir}/castor" />
 	<property name="jibx.temp.dir" value="${temp.dir}/jibx" />
 	<property name="jaxb.temp.dir" value="${temp.dir}/jaxb" />
 
+	<!-- read urls from download.properties file -->
+        <property file="download.properties" />
+
+	<!-- 3rd party jars downloads -->
 	<!-- castor -->
-	<property name="castor.jar" value="${castor.dir}/castor-0.9.5.4.jar"/>
-	<!--
-	<property name="castor.url" value="ftp://ftp.exolab.org/pub/castor/castor_0.9.5.4/castor-0.9.5.4.jar"/>
-	-->
-	<property name="castor.url" value="http://dist.codehaus.org/castor/0.9.5.4/castor-0.9.5.4.jar"/>
+	<property name="castor.jar" value="${castor.dir}/${castor.lib.name}"/>
 
 	<!-- jibx -->
-	<property name="jibx.zip" value="${jibx.dir}/jibx-beta3c.zip"/>
-	<!--
-	<property name="jibx.url" value="http://umn.dl.sourceforge.net/sourceforge/jibx/jibx-beta3c.zip"/>
-	-->
-	<property name="jibx.url" value="http://easynews.dl.sourceforge.net/sourceforge/jibx/jibx-beta3c.zip"/>
-
+	<property name="jibx.zip" value="${jibx.dir}/${jibx.lib.name}"/>
+	
 	<!-- v1 -->
-	<property name="v1.zip" value="${v1.dir}/xmlbeans-1.0.3.zip"/>
-	<property name="v1.url" value="http://www.apache.org/dist/xml/xmlbeans/v1.0.3/bin/xmlbeans-1.0.3.zip"/>
+	<property name="v1.zip" value="${v1.dir}/${v1.lib.name}"/>
+
+	<!-- v2 -->
+	<property name="v2.zip" value="${v2.dir}/${v2.lib.name}"/>
 
 	<!-- xerces -->
-	<property name="xercesImpl.jar" value="${xerces.dir}/xerces-2_6_2/xercesImpl.jar"/>
-	<property name="xerces.zip" value="${xerces.dir}/Xerces-J-bin.2.6.2.zip"/>
-	<property name="xerces.url" value="http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.2.6.2.zip"/>
+	<property name="xercesImpl.jar" value="${xerces.dir}/xerces-2_7_1/xercesImpl.jar"/>
+	<property name="xerces.zip" value="${xerces.dir}/${xerces.lib.name}"/>
 
 	<!-- user-defined schema jars for SOM runtime perf tests  -->
-	<property name="v2-purchase-order.jar" value="${schema.jar.build.dir}/v2-purchase-order.jar"/>
-	<property name="v2-primitives.jar" value="${schema.jar.build.dir}/v2-primitives.jar"/>
-	<property name="v2-non-primitives.jar" value="${schema.jar.build.dir}/v2-non-primitives.jar"/>
+	<property name="svn-purchase-order.jar" value="${schema.jar.build.dir}/svn-purchase-order.jar"/>
+	<property name="svn-primitives.jar" value="${schema.jar.build.dir}/svn-primitives.jar"/>
+	<property name="svn-non-primitives.jar" value="${schema.jar.build.dir}/svn-non-primitives.jar"/>
 	<property name="v1-purchase-order.jar" value="${schema.jar.build.dir}/v1-purchase-order.jar"/>
 	<property name="v1-primitives.jar" value="${schema.jar.build.dir}/v1-primitives.jar"/>
 	<property name="v1-non-primitives.jar" value="${schema.jar.build.dir}/v1-non-primitives.jar"/>
+	<property name="v2-purchase-order.jar" value="${schema.jar.build.dir}/v2-purchase-order.jar"/>
+	<property name="v2-primitives.jar" value="${schema.jar.build.dir}/v2-primitives.jar"/>
+	<property name="v2-non-primitives.jar" value="${schema.jar.build.dir}/v2-non-primitives.jar"/>
 	<property name="castor-purchase-order.jar" value="${schema.jar.build.dir}/castor-purchase-order.jar"/>
 	<property name="castor-primitives.jar" value="${schema.jar.build.dir}/castor-primitives.jar"/>
 	<property name="castor-non-primitives.jar" value="${schema.jar.build.dir}/castor-non-primitives.jar"/>
@@ -103,22 +125,22 @@
 
 	<!-- classpaths -->
 	<path id="tools.classpath">
-		<fileset dir="${v2.dir}/build/lib" includes="*.jar"/>
+		<fileset dir="${svn.dir}/build/lib" includes="*.jar"/>
 		<pathelement path="${perf-results.jar}"/>
 		<pathelement path="${build.dir}"/>
 	</path>
 
-	<path id="v2.classpath">
-		<fileset dir="${v2.dir}/build/lib" includes="*.jar"/>
-		<fileset dir="${v2.dir}/external/lib" includes="*.jar"/>
-		<pathelement path="${v2-purchase-order.jar}"/>
-		<pathelement path="${v2-primitives.jar}"/>
-		<pathelement path="${v2-non-primitives.jar}"/>
-		<pathelement path="${v2-netui-config.jar}"/>
+	<path id="svn.classpath">
+		<fileset dir="${svn.dir}/build/lib" includes="*.jar"/>
+		<fileset dir="${svn.dir}/external/lib" includes="*.jar"/>
+		<pathelement path="${svn-purchase-order.jar}"/>
+		<pathelement path="${svn-primitives.jar}"/>
+		<pathelement path="${svn-non-primitives.jar}"/>
+		<pathelement path="${svn-netui-config.jar}"/>
 		<pathelement path="${build.dir}"/>
 		<pathelement path="${perf-results.jar}"/>
 	</path>
-
+	
 	<path id="v1.classpath">
 		<fileset dir="${v1.dir}/xmlbeans-1.0.3/lib" includes="*.jar"/>
 		<pathelement path="${v1-purchase-order.jar}"/>
@@ -127,6 +149,14 @@
 		<pathelement path="${build.dir}"/>
 	</path>
 
+    <path id="v2.classpath">
+        <fileset dir="${v2.dir}/xmlbeans-2.0.0/lib" includes="*.jar"/>
+        <pathelement path="${v2-purchase-order.jar}"/>
+        <pathelement path="${v2-primitives.jar}"/>
+        <pathelement path="${v2-non-primitives.jar}"/>
+        <pathelement path="${build.dir}"/>
+    </path>
+
 	<path id="castor.classpath">
 		<pathelement path="${castor.jar}"/>
 		<pathelement path="${xercesImpl.jar}"/>
@@ -148,11 +178,9 @@
 	</path>
 
 	<path id="jaxb.classpath">
-		<!--fileset dir="${jaxb.dir}/lib" includes="*.jar"/-->
-		<fileset dir="${jaxb.dir}" includes="*.jar"/>
-		<!--fileset dir="${jaxb.dir}/jaxb/lib" includes="*.jar"/>
+		<fileset dir="${jaxb.dir}/jaxb/lib" includes="*.jar"/>
 		<fileset dir="${jaxb.dir}/jaxp/lib/endorsed" includes="*.jar"/>
-		<fileset dir="${jaxb.dir}/jwsdp-shared/lib" includes="*.jar"/-->
+		<fileset dir="${jaxb.dir}/jwsdp-shared/lib" includes="*.jar"/>
 		<pathelement path="${jaxb-purchase-order.jar}"/>
 		<pathelement path="${jaxb-primitives.jar}"/>
 		<pathelement path="${jaxb-non-primitives.jar}"/>
@@ -165,13 +193,13 @@
 	</path>
 
 	<!-- main build targets  -->
-	<target name="build.all" if="bootstrap.libdir.exists" depends="check.bootstrap.libs,build.schema.jars,build"/>
+	<target name="build.all" if="bootstrap.libdir.exists" depends="check.bootstrap.libs,check.xbeanshome,check.xbeansperfroot,build.schema.jars,build"/>
 	<target name="clean.all" depends="clean.schema.jars,clean"/>
-	<target name="rebuild.all" if="bootstrap.libdir.exists" depends="check.bootstrap.libs,rebuild.schema.jars,rebuild"/>
+	<target name="rebuild.all" if="bootstrap.libdir.exists" depends="check.bootstrap.libs,check.xbeanshome,check.xbeansperfroot,rebuild.schema.jars,rebuild"/>
 
 
 	<!-- conveinence src build targets  -->
-	<target name="build" depends="build.tools,build.v2.perf,build.v1.perf,build.castor.perf,build.jibx.perf,build.xerces.perf,build.jaxb.perf"/>
+	<target name="build" depends="build.tools,build.svn.perf,build.v1.perf,build.v2.perf,build.jibx.perf,build.xerces.perf,build.jaxb.perf,build.castor.perf"/>
 
 	<target name="clean">
 		<delete dir="${build.dir}"/>
@@ -180,10 +208,11 @@
 
 	<target name="rebuild" depends="clean,build"/>
 
+	<target name="build.xmlbeans.perf" depends="check.xbeanshome,check.xbeansperfroot,xmlbeans.bootstrap,v1.schema.jars, v2.schema.jars,svn.schema.jars, build.tools, build.svn.perf,build.v1.perf, build.v2.perf" />
 
 	<!-- conveinence schema jar build targets -->
-	<target name="build.schema.jars" depends="v2.schema.jars,v1.schema.jars,castor.schema.jars,jibx.schema.jars,jaxb.schema.jars"/>
-
+	<target name="build.schema.jars" depends="svn.schema.jars,v1.schema.jars,v2.schema.jars,jibx.schema.jars,castor.schema.jars,jaxb.schema.jars"/>
+	
 	<target name="clean.schema.jars">
 		<delete dir="${schema.jar.build.dir}"/>
 	</target>
@@ -196,30 +225,43 @@
 		<delete dir="${3rdparty.dir}"/>
 	</target>
 
-	<target name="check.bootstrap.libs">
-	<echo message="Verifying 3rd Party libraries download ..." />
-		<available property="bootstrap.libdir.exists"
-			file="${3rdparty.dir}" type="dir" />
-		<fail message="3rd Party Libraries not found! Please run 'ant bootstrap' to download these first." unless="bootstrap.libdir.exists" />
-	</target>
-
-	<target name="bootstrap">
+	<target name="bootstrap" depends="check.xbeanshome,check.xbeansperfroot">
 		<mkdir dir="${castor.dir}"/>
-		<get src="${castor.url}" dest="${castor.jar}" verbose="true"/>
+		<get src="${castor.url}" dest="${castor.jar}" verbose="true" usetimestamp="true"/>
 
 		<mkdir dir="${jibx.dir}"/>
-		<get src="${jibx.url}" dest="${jibx.zip}" verbose="true"/>
+		<get src="${jibx.url}" dest="${jibx.zip}" verbose="true" usetimestamp="true"/>
 		<unzip src="${jibx.zip}" dest="${jibx.dir}"/>
 
 		<mkdir dir="${v1.dir}"/>
-		<get src="${v1.url}" dest="${v1.zip}" verbose="true"/>
+		<get src="${v1.url}" dest="${v1.zip}" verbose="true" usetimestamp="true"/>
 		<unzip src="${v1.zip}" dest="${v1.dir}"/>
 
+        <mkdir dir="${v2.dir}"/>
+        <get src="${v2.url}" dest="${v2.zip}" verbose="true" usetimestamp="true"/>
+        <unzip src="${v2.zip}" dest="${v2.dir}"/>
+
 		<mkdir dir="${xerces.dir}"/>
-		<get src="${xerces.url}" dest="${xerces.zip}" verbose="true"/>
+		<get src="${xerces.url}" dest="${xerces.zip}" verbose="true" usetimestamp="true"/>
 		<unzip src="${xerces.zip}" dest="${xerces.dir}"/>
 
-		<echo message="FOR JAXB SETUP, DOWNLOAD AND INSTALL WSDP 1.5 IN [dir] (for ex c:\Sun\jwsdp-1.5)"/>
+		<antcall target="check.jaxb.libdir" />
+
+	</target>
+
+	<!-- added - bootstrap only for XmlBeans versions -->
+	<target name="xmlbeans.bootstrap">
+		<mkdir dir="${v1.dir}"/>
+		<get src="${v1.url}" dest="${v1.zip}" verbose="true" usetimestamp="true"/>
+		<unzip src="${v1.zip}" dest="${v1.dir}"/>
+
+        <mkdir dir="${v2.dir}"/>
+        <get src="${v2.url}" dest="${v2.zip}" verbose="true" usetimestamp="true"/>
+        <unzip src="${v2.zip}" dest="${v2.dir}"/>
+	</target>
+
+	<target name="jaxb.bootstrap">
+		<echo message="FOR JAXB SETUP, DOWNLOAD AND INSTALL WSDP 1.6 IN [dir] (for ex c:\Sun\jwsdp-1.6)"/>
 		<echo message="THEN SET JAXB_LIBDIR IN YOUR ENVIRONMENT TO POINT TO [dir]"/>
 		<!--  All the required JAXB jars listed for reference
 		<echo message="activation.jar,commons-beanutils.jar,commons-collections.jar,commons-digester.jar
@@ -227,7 +269,6 @@
 			jta-spec1_0_1.jar mail.jar namespace.jar relaxngDatatype.jar xsdlib.jar endorsed/dom.jar
 			endorsed/sax.jar endorsed/xalan.jar endorsed/xercesImpl.jar endorsed/xsltc.jar "/>
 		-->
-
 	</target>
 
 	<target name="build.tools">
@@ -245,7 +286,7 @@
 		</javac>
 	</target>
 
-	<target name="build.v2.perf">
+	<target name="build.svn.perf">
 		<mkdir dir="${build.dir}"/>
 		<javac srcdir="${src.dir}"
 			destdir="${build.dir}"
@@ -254,8 +295,8 @@
 			memoryMaximumSize="1000M"
 			compiler="modern"
 			executable="${env.JAVA_HOME}/bin/javac"
-			classpathref="v2.classpath"
-			includes="org/apache/xmlbeans/test/performance/v2/**,org/apache/xmlbeans/test/performance/utils/**"
+			classpathref="svn.classpath"
+			includes="org/apache/xmlbeans/test/performance/svn/**,org/apache/xmlbeans/test/performance/utils/**"
 			source="1.4">
 		</javac>
 	</target>
@@ -275,6 +316,21 @@
 		</javac>
 	</target>
 
+    <target name="build.v2.perf">
+        <mkdir dir="${build.dir}"/>
+        <javac srcdir="${src.dir}"
+            destdir="${build.dir}"
+            debug="on"
+            fork="yes"
+            memoryMaximumSize="1000M"
+            compiler="modern"
+            executable="${env.JAVA_HOME}/bin/javac"
+            classpathref="v2.classpath"
+            includes="org/apache/xmlbeans/test/performance/v2/**,org/apache/xmlbeans/test/performance/utils/**"
+            source="1.4">
+        </javac>
+    </target>
+
 	<target name="build.castor.perf">
 		<mkdir dir="${build.dir}"/>
 		<javac srcdir="${src.dir}"
@@ -338,52 +394,64 @@
 
 	<!-- specific schema compile targets  -->
 	<target name="os.init">
-		<condition property="scomp" value="${v2.xmlbeans.root}\bin\scomp.cmd">
+		<condition property="scomp" value="${svn.xmlbeans.root}\bin\scomp.cmd">
 			<os family="windows"/>
 		</condition>
-		<condition property="scomp" value="${v2.xmlbeans.root}/bin/scomp">
+		<condition property="scomp" value="${svn.xmlbeans.root}/bin/scomp">
 			<os family="unix"/>
 		</condition>
 		<echo message="scomp variable=${scomp}"/>
 	</target>
 
 
-	<!-- v2 schema jars -->
-	<target name="v2.schema.jars">
-		<antcall target="v2.schema.build">
+	<!-- svn schema jars -->
+	<target name="svn.schema.jars">
+		<antcall target="svn.schema.build">
 			<param name="xsd.name" value="purchase-order.xsd"/>
-			<param name="jar.name" value="v2-purchase-order.jar"/>
+			<param name="jar.name" value="svn-purchase-order.jar"/>
 		</antcall>
-		<antcall target="v2.schema.build">
+		<antcall target="svn.schema.build">
 			<param name="xsd.name" value="primitives.xsd"/>
-			<param name="jar.name" value="v2-primitives.jar"/>
+			<param name="jar.name" value="svn-primitives.jar"/>
 		</antcall>
-		<antcall target="v2.schema.build">
+		<antcall target="svn.schema.build">
 			<param name="xsd.name" value="non-primitives.xsd"/>
-			<param name="jar.name" value="v2-non-primitives.jar"/>
+			<param name="jar.name" value="svn-non-primitives.jar"/>
 		</antcall>
-		<antcall target="v2.schema.build">
+		<antcall target="svn.schema.build">
 			<param name="xsd.name" value="perf-results.xsd"/>
 			<param name="jar.name" value="perf-results.jar"/>
 		</antcall>
 	</target>
 
-	<target name="v2.schema.build" depends="os.init">
-		<echo message="starting schema compilation with XmlBeans v2"/>
+	<target name="svn.schema.build" depends="os.init">
+		<echo message="starting schema compilation with XmlBeans SVN "/>
 		<echo message="Schema source file : ${test.case.dir}/xsd/${xsd.name}"/>
-		<mkdir dir="${v2.temp.dir}"/>
+		<mkdir dir="${svn.temp.dir}"/>
 		<mkdir dir="${schema.jar.build.dir}"/>
-		<chmod file="${v2.xmlbeans.root}/bin/scomp" perm="755"/>
-		<exec	dir="${v2.temp.dir}"
-					executable="${scomp}"
-					output="${v2.temp.dir}/scomp_output.txt">
-			<env key="XMLBEANS_HOME" value="${v2.xmlbeans.root}"/>
+
+        <!--
+		<chmod file="${svn.xmlbeans.root}/bin/scomp" perm="755"/>
+		<exec	dir="${svn.temp.dir}"
+					executable="${scomp}" 
+					output="${svn.temp.dir}/scomp_output.txt">
+			<env key="XMLBEANS_HOME" value="${svn.xmlbeans.root}"/>
 			<arg line="-out ${jar.name}"/>
 			<arg line="${test.case.dir}/xsd/${xsd.name}"/>
 		</exec>
-		<copy file="${v2.temp.dir}/${jar.name}" todir="${schema.jar.build.dir}"/>
+        -->
+	        <java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler"
+                	fork="true"
+             	       	dir="${xmlbeans.perf.root}"
+                	classpathref="svn.classpath">
+            		<arg line="-out ${svn.temp.dir}/${jar.name}"/>
+            		<arg line="${test.case.dir}/xsd/${xsd.name}"/>
+        	</java>
+
+
+		<copy file="${svn.temp.dir}/${jar.name}" todir="${schema.jar.build.dir}"/>
 		<echo message="Schema comp output jar file : ${schema.jar.build.dir}/${jar.name}"/>
-		<echo message="Schema comp output file : ${v2.temp.dir}/scomp_output.txt"/>
+		<echo message="Schema comp output file : ${svn.temp.dir}/scomp_output.txt"/>
 		<echo message="done"/>
 	</target>
 
@@ -407,6 +475,7 @@
 	<target name="v1.schema.build" depends="os.init">
 		<echo message="starting schema compilation with XmlBeans v1"/>
 		<echo message="Schema source file : ${test.case.dir}/xsd/${xsd.name}"/>
+
 		<mkdir dir="${v1.temp.dir}"/>
 		<mkdir dir="${schema.jar.build.dir}"/>
 		<java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler"
@@ -420,6 +489,39 @@
 		<echo message="Schema comp output jar file : ${schema.jar.build.dir}/${jar.name}"/>
 	</target>
 
+    <!-- v2 schema jars -->
+    <target name="v2.schema.jars">
+        <antcall target="v2.schema.build">
+            <param name="xsd.name" value="purchase-order.xsd"/>
+            <param name="jar.name" value="v2-purchase-order.jar"/>
+        </antcall>
+        <antcall target="v2.schema.build">
+            <param name="xsd.name" value="primitives.xsd"/>
+            <param name="jar.name" value="v2-primitives.jar"/>
+        </antcall>
+        <antcall target="v2.schema.build">
+            <param name="xsd.name" value="non-primitives.xsd"/>
+            <param name="jar.name" value="v2-non-primitives.jar"/>
+        </antcall>
+    </target>
+
+    <target name="v2.schema.build" depends="os.init">
+        <echo message="starting schema compilation with XmlBeans v2"/>
+        <echo message="Schema source file : ${test.case.dir}/xsd/${xsd.name}"/>
+
+        <mkdir dir="${v2.temp.dir}"/>
+        <mkdir dir="${schema.jar.build.dir}"/>
+        <java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler"
+                    fork="true"
+                    dir="${xmlbeans.perf.root}"
+                    classpathref="v2.classpath">
+            <arg line="-out ${v2.temp.dir}/${jar.name}"/>
+            <arg line="${test.case.dir}/xsd/${xsd.name}"/>
+        </java>
+        <copy file="${v2.temp.dir}/${jar.name}" todir="${schema.jar.build.dir}"/>
+        <echo message="Schema comp output jar file : ${schema.jar.build.dir}/${jar.name}"/>
+    </target>
+
 	<!-- castor schema jars -->
 	<target name="castor.schema.jars">
 		<antcall target="castor.schema.build">
@@ -481,7 +583,7 @@
 			executable="${env.JAVA_HOME}/bin/javac"
 			classpathref="jibx.binding.classpath"
 			includes="org/apache/xmlbeans/test/performance/jibx/binding/**"
-			excludes="org/apache/xmlbeans/test/performance/castor/**,org/apache/xmlbeans/test/performance/v2/**,org/apache/xmlbeans/test/performance/utils/**"
+			excludes="org/apache/xmlbeans/test/performance/castor/**,org/apache/xmlbeans/test/performance/svn/**,org/apache/xmlbeans/test/performance/utils/**"
 			source="1.4">
 		</javac>
 		<java classname="org.jibx.binding.Compile"
@@ -518,18 +620,12 @@
 	<target name="check.jaxb.libdir">
 		<available property="jaxb.libdir.exists"
 			file="${jaxb.dir}" type="dir" />
-		<fail message="Jaxb installaton directory ${jaxb.dir} not found! FOR JAXB SETUP, DOWNLOAD AND INSTALL WSDP 1.5 IN [dir] (for ex c:\Sun\jwsdp-1.5) AND SET JAXB_LIBDIR IN YOUR ENVIRONMENT TO POINT TO [dir]." unless="jaxb.libdir.exists"   />
+		<fail message="JAXB installaton directory ${jaxb.dir} not found! FOR JAXB SETUP, DOWNLOAD AND INSTALL WSDP 1.6 IN [dir] (for ex c:\Sun\jwsdp-1.6) AND SET JAXB_LIBDIR IN YOUR ENVIRONMENT TO POINT TO [dir]." unless="jaxb.libdir.exists"   />
 	</target>
 
+
 	<target name="jaxb.schema.build">
 		<echo message="starting schema compilation with jaxb"/>
-		<echo message="  jaxb.temp.dir ${jaxb.temp.dir}"/>
-		<echo message="  schema.jar.build.dir ${schema.jar.build.dir}"/>
-		<echo message="  {ns} ${ns}"/>
-		<echo message="  {env.JAVA_HOME} ${env.JAVA_HOME}"/>
-		<echo message="  {jar.name} ${jar.name}"/>
-		<echo message="  {test.case.dir}/xsd/{xsd.name} ${test.case.dir}/xsd/${xsd.name}"/>
-
 		<mkdir dir="${jaxb.temp.dir}"/>
 		<mkdir dir="${schema.jar.build.dir}"/>
 		<java classname="com.sun.tools.xjc.Driver"
@@ -548,11 +644,31 @@
 			compiler="modern"
 			executable="${env.JAVA_HOME}/bin/javac"
 			classpathref="jaxb.classpath"
-			source="1.5">
+			source="1.4">
 		</javac>
 		<jar destfile="${schema.jar.build.dir}/${jar.name}"
 				 basedir="${jaxb.temp.dir}"/>
 	</target>
 
+	<!-- utility targets -->
+
+	<target name="check.bootstrap.libs">
+	<echo message="Verifying 3rd Party libraries download ..." />
+		<available property="bootstrap.libdir.exists"
+			file="${3rdparty.dir}" type="dir" />
+		<fail message="3rd Party Libraries not found! Please run 'ant bootstrap' to download these first." unless="bootstrap.libdir.exists" />
+	</target>
+
+	<target name="check.xbeanshome">
+		<available property="xbeanshome.exists"
+			file="${svn.xmlbeans.root}" type="dir" />
+		<fail message="Xmlbeans root ${svn.xmlbeans.root} not found! Please set XMLBEANS_HOME to the svn root directory." unless="xbeanshome.exists" />
+	</target>
+
+	<target name="check.xbeansperfroot">
+		<available property="xbeansperfroor.exists"
+			file="${xmlbeans.perf.root}" type="dir" />
+		<fail message="Xmlbeans root ${xmlbeans.perf.root} not found! Please run env.bat from XMLBEANS SVN HOME\test\perf " unless="xbeansperfroor.exists" />
+	</target>
 
 </project>

Added: xmlbeans/trunk/test/perf/download.properties
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/download.properties?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/download.properties (added)
+++ xmlbeans/trunk/test/perf/download.properties Fri Aug 19 16:32:14 2005
@@ -0,0 +1,32 @@
+<!--
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- Specifies the download URLs for the various tools that are being compared with XmlBeans for performance -->
+
+castor.url=http://dist.codehaus.org/castor/0.9.5.4/castor-0.9.5.4.jar
+castor.lib.name=castor-0.9.5.4.jar
+
+jibx.url=http://easynews.dl.sourceforge.net/sourceforge/jibx/jibx-beta3c.zip
+jibx.lib.name=jibx-beta3c.zip
+
+v1.url=http://www.apache.org/dist/xml/xmlbeans/v1.0.3/bin/xmlbeans-1.0.3.zip
+v1.lib.name=xmlbeans-1.0.3.zip
+
+xerces.url=http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.2.7.1.zip
+xerces.lib.name=Xerces-J-bin.2.7.1.zip
+
+v2.url=http://apache.tradebit.com/pub/xmlbeans/binaries/xmlbeans-2.0.0.zip
+v2.lib.name=xmlbeans-2.0.0.zip

Modified: xmlbeans/trunk/test/perf/results.xml
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/results.xml?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/results.xml (original)
+++ xmlbeans/trunk/test/perf/results.xml Fri Aug 19 16:32:14 2005
@@ -1,3 +1,18 @@
+<!--
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
 <!-- build file -->
 <project name="xmlbeans-perf" default="usage">
 

Modified: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/NPrimTopDownJaxb.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/NPrimTopDownJaxb.java?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/NPrimTopDownJaxb.java (original)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/NPrimTopDownJaxb.java Fri Aug 19 16:32:14 2005
@@ -23,21 +23,21 @@
 //import java.util.List;
 
 // from jaxb-generated schema jar(s)
-import org.openuri.nonprimitives.NonPrimitives;
-import org.openuri.nonprimitives.Numerics;
+import org.openuri.nonprimitives.impl.NonPrimitivesImpl;
+import org.openuri.nonprimitives.impl.NumericsImpl;
 
 
 public class NPrimTopDownJaxb
 {
   public static void main(String[] args) throws Exception
   {
-
+    
     final int iterations = Constants.ITERATIONS;
-
+ 
     NPrimTopDownJaxb test = new NPrimTopDownJaxb();
     long cputime;
     int hash = 0;
-
+        
     // warm up the vm
     cputime = System.currentTimeMillis();
     for(int i=0; i<iterations; i++){
@@ -51,7 +51,7 @@
       hash += test.run();
     }
     cputime = System.currentTimeMillis() - cputime;
-
+      
     // print the results
     // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
     System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" ");
@@ -59,30 +59,15 @@
     System.out.print("time "+cputime+"\n");
   }
 
-
-    static javax.xml.datatype.DatatypeFactory dtf;
-    static
-    {
-  	  try
-  	  {
-  	      dtf = javax.xml.datatype.DatatypeFactory.newInstance();
-        }
-        catch(Exception e)
-        {
-  		  e.printStackTrace();
-        }
-    }
-
-
   private int run() throws Exception
   {
     // create the doc
-    NonPrimitives nprim = new NonPrimitives();
+    NonPrimitivesImpl nprim = new NonPrimitivesImpl();
 
     // create and initialize the numerics
     for(int i=0; i<Constants.PO_NUM_LINEITEMS; i++)
     {
-      Numerics numerics = new Numerics();
+      NumericsImpl numerics = new NumericsImpl();
       numerics.setMydecimal(Constants.myBigDecimal);
       numerics.setMyinteger(Constants.myPosBigInteger);
       numerics.setMyneginteger(Constants.myNegBigInteger);
@@ -91,9 +76,9 @@
       numerics.setMyposinteger(Constants.myPosBigInteger);
       nprim.getNumerics().add(numerics);
     }
-
+    
     // create and initialize the misc element
-    nprim.setMydate(dtf.newXMLGregorianCalendar(Constants.myDate));
+    nprim.setMydate(Constants.myDate);
     nprim.setMystring(Constants.myString);
 
     // calculate a hash to return

Modified: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownJaxb.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownJaxb.java?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownJaxb.java (original)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownJaxb.java Fri Aug 19 16:32:14 2005
@@ -15,7 +15,6 @@
 package org.apache.xmlbeans.test.performance.jaxb;
 
 import java.util.Calendar;
-import java.util.GregorianCalendar;
 
 import org.apache.xmlbeans.test.performance.utils.Constants;
 
@@ -25,25 +24,24 @@
 //import javax.xml.transform.stream.StreamSource;
 //import java.util.List;
 
-
 // from jaxb-generated schema jar(s)
-import org.openuri.easypo.PurchaseOrder;
-import org.openuri.easypo.Customer;
-import org.openuri.easypo.LineItem;
-import org.openuri.easypo.Shipper;
+import org.openuri.easypo.impl.PurchaseOrderImpl;
+import org.openuri.easypo.impl.CustomerImpl;
+import org.openuri.easypo.impl.LineItemImpl;
+import org.openuri.easypo.impl.ShipperImpl;
 
 
 public class POTopDownJaxb
 {
   public static void main(String[] args) throws Exception
   {
-
+    
     final int iterations = Constants.ITERATIONS;
-
+ 
     POTopDownJaxb test = new POTopDownJaxb();
     long cputime;
     int hash = 0;
-
+        
     // warm up the vm
     cputime = System.currentTimeMillis();
     for(int i=0; i<iterations; i++){
@@ -57,7 +55,7 @@
       hash += test.run();
     }
     cputime = System.currentTimeMillis() - cputime;
-
+      
     // print the results
     // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
     System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" ");
@@ -65,48 +63,33 @@
     System.out.print("time "+cputime+"\n");
   }
 
-
-    static javax.xml.datatype.DatatypeFactory dtf;
-    static
-    {
-  	  try
-  	  {
-  	      dtf = javax.xml.datatype.DatatypeFactory.newInstance();
-        }
-        catch(Exception e)
-        {
-  		  e.printStackTrace();
-        }
-    }
-
-
   private int run() throws Exception
   {
     // create the purchase order
-    PurchaseOrder po = new PurchaseOrder();
+    PurchaseOrderImpl po = new PurchaseOrderImpl();
 
     // create and initialize the customer
-    Customer customer = new Customer();
+    CustomerImpl customer = new CustomerImpl();
     customer.setName(Constants.PO_CUSTOMER_NAME);
     customer.setAddress(Constants.PO_CUSTOMER_ADDR);
     po.setCustomer(customer);
 
     // set the date
-    po.setDate(dtf.newXMLGregorianCalendar(new GregorianCalendar()));
+    po.setDate(Calendar.getInstance());
 
     // create and initialize the line item array
     for(int i=0; i<Constants.PO_NUM_LINEITEMS; i++)
     {
-      LineItem li = new LineItem();
+      LineItemImpl li = new LineItemImpl();
       li.setDescription(Constants.PO_LI_DESC);
       li.setPerUnitOunces(Constants.PO_LI_PUO);
       li.setPrice(Constants.PO_LI_PRICE);
       li.setQuantity(Constants.PO_LI_QUANTITY);
       po.getLineItem().add(li);
     }
-
+    
     // create and initialize the shipper
-    Shipper shipper = new Shipper();
+    ShipperImpl shipper = new ShipperImpl();
     shipper.setName(Constants.PO_SHIPPER_NAME);
     shipper.setPerOunceRate(Constants.PO_SHIPPER_POR);
     po.setShipper(shipper);

Modified: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownSaveJaxb.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownSaveJaxb.java?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownSaveJaxb.java (original)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/POTopDownSaveJaxb.java Fri Aug 19 16:32:14 2005
@@ -15,7 +15,6 @@
 package org.apache.xmlbeans.test.performance.jaxb;
 
 import java.util.Calendar;
-import java.util.GregorianCalendar;
 import java.io.StringWriter;
 
 import org.apache.xmlbeans.test.performance.utils.Constants;
@@ -27,23 +26,23 @@
 //import java.util.List;
 
 // from jaxb-generated schema jar(s)
-import org.openuri.easypo.PurchaseOrder;
-import org.openuri.easypo.Customer;
-import org.openuri.easypo.LineItem;
-import org.openuri.easypo.Shipper;
+import org.openuri.easypo.impl.PurchaseOrderImpl;
+import org.openuri.easypo.impl.CustomerImpl;
+import org.openuri.easypo.impl.LineItemImpl;
+import org.openuri.easypo.impl.ShipperImpl;
 
 
 public class POTopDownSaveJaxb
 {
   public static void main(String[] args) throws Exception
   {
-
+    
     final int iterations = Constants.ITERATIONS;
-
+ 
     POTopDownSaveJaxb test = new POTopDownSaveJaxb();
     long cputime;
     int hash = 0;
-
+        
     // warm up the vm
     cputime = System.currentTimeMillis();
     for(int i=0; i<iterations; i++){
@@ -57,7 +56,7 @@
       hash += test.run();
     }
     cputime = System.currentTimeMillis() - cputime;
-
+      
     // print the results
     // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
     System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" ");
@@ -65,49 +64,33 @@
     System.out.print("time "+cputime+"\n");
   }
 
-
-    static javax.xml.datatype.DatatypeFactory dtf;
-    static
-    {
-  	  try
-  	  {
-  	      dtf = javax.xml.datatype.DatatypeFactory.newInstance();
-        }
-        catch(Exception e)
-        {
-  		  e.printStackTrace();
-        }
-    }
-
-
-
   private int run() throws Exception
   {
     // create the purchase order
-    PurchaseOrder po = new PurchaseOrder();
+    PurchaseOrderImpl po = new PurchaseOrderImpl();
 
     // create and initialize the customer
-    Customer customer = new Customer();
+    CustomerImpl customer = new CustomerImpl();
     customer.setName(Constants.PO_CUSTOMER_NAME);
     customer.setAddress(Constants.PO_CUSTOMER_ADDR);
     po.setCustomer(customer);
 
     // set the date
-    po.setDate(dtf.newXMLGregorianCalendar(new GregorianCalendar()));
+    po.setDate(Calendar.getInstance());
 
     // create and initialize the line item array
     for(int i=0; i<Constants.PO_NUM_LINEITEMS; i++)
     {
-      LineItem li = new LineItem();
+      LineItemImpl li = new LineItemImpl();
       li.setDescription(Constants.PO_LI_DESC);
       li.setPerUnitOunces(Constants.PO_LI_PUO);
       li.setPrice(Constants.PO_LI_PRICE);
       li.setQuantity(Constants.PO_LI_QUANTITY);
       po.getLineItem().add(li);
     }
-
+    
     // create and initialize the shipper
-    Shipper shipper = new Shipper();
+    ShipperImpl shipper = new ShipperImpl();
     shipper.setName(Constants.PO_SHIPPER_NAME);
     shipper.setPerOunceRate(Constants.PO_SHIPPER_POR);
     po.setShipper(shipper);

Modified: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/PrimTopDownJaxb.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/PrimTopDownJaxb.java?rev=233577&r1=233576&r2=233577&view=diff
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/PrimTopDownJaxb.java (original)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/jaxb/PrimTopDownJaxb.java Fri Aug 19 16:32:14 2005
@@ -23,9 +23,9 @@
 //import java.util.List;
 
 // from jaxb-generated schema jar(s)
-import org.openuri.primitives.Primitives;
-import org.openuri.primitives.Numerics;
-import org.openuri.primitives.Misc;
+import org.openuri.primitives.impl.PrimitivesImpl;
+import org.openuri.primitives.impl.NumericsImpl;
+import org.openuri.primitives.impl.MiscImpl;
 
 
 public class PrimTopDownJaxb
@@ -33,11 +33,11 @@
   public static void main(String[] args) throws Exception
   {
     final int iterations = Constants.ITERATIONS;
-
+ 
     PrimTopDownJaxb test = new PrimTopDownJaxb();
     long cputime;
     int hash = 0;
-
+        
     // warm up the vm
     cputime = System.currentTimeMillis();
     for(int i=0; i<iterations; i++){
@@ -51,7 +51,7 @@
       hash += test.run();
     }
     cputime = System.currentTimeMillis() - cputime;
-
+      
     // print the results
     // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
     System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" ");
@@ -62,12 +62,12 @@
   private int run() throws Exception
   {
     // create the doc
-    Primitives prim = new Primitives();
+    PrimitivesImpl prim = new PrimitivesImpl();
 
     // create and initialize the numerics
     for(int i=0; i<Constants.PO_NUM_LINEITEMS; i++)
     {
-      Numerics numerics = new Numerics();
+      NumericsImpl numerics = new NumericsImpl();
       numerics.setMybyte(Constants.myByte);
       numerics.setMyint(Constants.myInt);
       numerics.setMylong(Constants.myLong);
@@ -77,9 +77,9 @@
       numerics.setMyfloat(Constants.myFloat);
       prim.getNumerics().add(numerics);
     }
-
+    
     // create and initialize the misc element
-    Misc misc = new Misc();
+    MiscImpl misc = new MiscImpl();
     misc.setMybool(Constants.myBool);
     prim.setMisc(misc);
 

Added: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/BisLoadSVN.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/BisLoadSVN.java?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/BisLoadSVN.java (added)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/BisLoadSVN.java Fri Aug 19 16:32:14 2005
@@ -0,0 +1,83 @@
+/*   Copyright 2004 The Apache Software Foundation
+*
+*   Licensed under the Apache License, Version 2.0 (the "License");
+*   you may not use this file except in compliance with the License.
+*   You may obtain a copy of the License at
+*
+*       http://www.apache.org/licenses/LICENSE-2.0
+*
+*   Unless required by applicable law or agreed to in writing, software
+*   distributed under the License is distributed on an "AS IS" BASIS,
+*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+*   See the License for the specific language governing permissions and
+*  limitations under the License.
+*/
+package org.apache.xmlbeans.test.performance.svn;
+
+import java.io.BufferedInputStream;
+import java.io.ByteArrayInputStream;
+
+import org.apache.xmlbeans.XmlCursor;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.test.performance.utils.Constants;
+import org.apache.xmlbeans.test.performance.utils.PerfUtil;
+
+
+public class BisLoadSVN
+{
+ 
+  public static void main(String[] args) throws Exception
+  {
+
+    final int iterations = Constants.CURSOR_ITERATIONS;
+    String flavor;
+
+    if(args.length == 0)
+      flavor = "deep-attributes";
+    else
+      flavor = args[0];
+
+    BisLoadSVN test = new BisLoadSVN();
+    PerfUtil util = new PerfUtil();
+    long cputime;
+    int hash = 0;
+
+    // get the buffered input stram
+    byte[] bytes = util.createXmlDataBytes(flavor, Constants.XML_SIZE);
+
+    // warm up the vm
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(new BufferedInputStream(new ByteArrayInputStream(bytes) ));
+    }
+    cputime = System.currentTimeMillis() - cputime;
+
+    // run it again for the real measurement
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(new BufferedInputStream(new ByteArrayInputStream(bytes) ));
+    }
+    cputime = System.currentTimeMillis() - cputime;
+      
+    // print the results
+    // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
+    System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" flavor="+flavor+" ");
+    System.out.print("hash "+hash+" ");
+    System.out.print("time "+cputime+"\n");
+
+  }
+
+  private int run(BufferedInputStream p_bis) throws Exception
+  {
+    int iHash = 0;
+ 
+    // load the buffered input stream
+    XmlObject xobj = XmlObject.Factory.parse(p_bis);
+ 
+    // calculate and return the hash value
+    XmlCursor cursor = xobj.newCursor();
+    cursor.toFirstContentToken();
+    return cursor.getName().toString().length() * 17;
+      
+  }
+}

Added: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetAttributeSVN.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetAttributeSVN.java?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetAttributeSVN.java (added)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetAttributeSVN.java Fri Aug 19 16:32:14 2005
@@ -0,0 +1,82 @@
+/*   Copyright 2004 The Apache Software Foundation
+*
+*   Licensed under the Apache License, Version 2.0 (the "License");
+*   you may not use this file except in compliance with the License.
+*   You may obtain a copy of the License at
+*
+*       http://www.apache.org/licenses/LICENSE-2.0
+*
+*   Unless required by applicable law or agreed to in writing, software
+*   distributed under the License is distributed on an "AS IS" BASIS,
+*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+*   See the License for the specific language governing permissions and
+*  limitations under the License.
+*/
+package org.apache.xmlbeans.test.performance.svn;
+
+import java.io.CharArrayReader;
+
+import org.apache.xmlbeans.XmlCursor;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.test.performance.utils.Constants;
+import org.apache.xmlbeans.test.performance.utils.PerfUtil;
+
+public class CursorGetAttributeSVN
+{
+
+  public static void main(String[] args) throws Exception
+  {
+
+    final int iterations = Constants.GET_SET_ITERATIONS;
+    String flavor;
+
+    // the only flavors that should be used are
+    // deep-attributes and wide-attributes
+    // because this scenario focuses on attribute values
+    if(args.length == 0)
+      flavor = "deep-attributes";
+    else
+      flavor = args[0];
+
+    CursorGetAttributeSVN test = new CursorGetAttributeSVN();
+    PerfUtil util = new PerfUtil();
+    long cputime;
+    int hash = 0;
+
+    // get the xml cursor
+    char[] chars = util.createXmlData(flavor, Constants.XML_SIZE);
+    XmlObject doc = XmlObject.Factory.parse(new CharArrayReader(chars));
+    XmlCursor cursor = doc.newCursor();
+
+    // warm up the vm
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+
+    // run it again for the real measurement
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+      
+    // print the results
+    // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
+    System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" flavor="+flavor+" ");
+    System.out.print("hash "+hash+" ");
+    System.out.print("time "+cputime+" ");
+    System.out.print("time/it " + ((double)cputime)/((double)iterations) + "\n");
+  }
+
+  private int run(XmlCursor p_cursor) throws Exception
+  {
+    p_cursor.toFirstChild();
+    p_cursor.toFirstChild();
+    p_cursor.toFirstAttribute();
+    return p_cursor.getTextValue().length() * 17;
+  }
+}

Added: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetElementSVN.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetElementSVN.java?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetElementSVN.java (added)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetElementSVN.java Fri Aug 19 16:32:14 2005
@@ -0,0 +1,81 @@
+/*   Copyright 2004 The Apache Software Foundation
+*
+*   Licensed under the Apache License, Version 2.0 (the "License");
+*   you may not use this file except in compliance with the License.
+*   You may obtain a copy of the License at
+*
+*       http://www.apache.org/licenses/LICENSE-2.0
+*
+*   Unless required by applicable law or agreed to in writing, software
+*   distributed under the License is distributed on an "AS IS" BASIS,
+*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+*   See the License for the specific language governing permissions and
+*  limitations under the License.
+*/
+package org.apache.xmlbeans.test.performance.svn;
+
+import java.io.CharArrayReader;
+
+import org.apache.xmlbeans.XmlCursor;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.test.performance.utils.Constants;
+import org.apache.xmlbeans.test.performance.utils.PerfUtil;
+
+public class CursorGetElementSVN
+{
+
+  public static void main(String[] args) throws Exception
+  {
+
+    final int iterations = Constants.GET_SET_ITERATIONS;
+    String flavor;
+
+    // the only flavors that should be used are
+    // wide-text and any others that have text values (none of as 8/18/04)
+    // because this scenario focuses on element values
+    if(args.length == 0)
+      flavor = "wide-text";
+    else
+      flavor = args[0];
+
+    CursorGetElementSVN test = new CursorGetElementSVN();
+    PerfUtil util = new PerfUtil();
+    long cputime;
+    int hash = 0;
+
+    // get the xml cursor
+    char[] chars = util.createXmlData(flavor, Constants.XML_SIZE);
+    XmlObject doc = XmlObject.Factory.parse(new CharArrayReader(chars));
+    XmlCursor cursor = doc.newCursor();
+
+    // warm up the vm
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+
+    // run it again for the real measurement
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+      
+    // print the results
+    // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
+    System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" flavor="+flavor+" ");
+    System.out.print("hash "+hash+" ");
+    System.out.print("time "+cputime+" ");
+    System.out.print("time/it " + ((double)cputime)/((double)iterations) + "\n");
+  }
+
+  private int run(XmlCursor p_cursor) throws Exception
+  {
+    p_cursor.toFirstChild();
+    p_cursor.toFirstChild();
+    return p_cursor.getTextValue().length() * 17;
+  }
+}

Added: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetAttributeSVN.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetAttributeSVN.java?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetAttributeSVN.java (added)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetAttributeSVN.java Fri Aug 19 16:32:14 2005
@@ -0,0 +1,97 @@
+/*   Copyright 2004 The Apache Software Foundation
+*
+*   Licensed under the Apache License, Version 2.0 (the "License");
+*   you may not use this file except in compliance with the License.
+*   You may obtain a copy of the License at
+*
+*       http://www.apache.org/licenses/LICENSE-2.0
+*
+*   Unless required by applicable law or agreed to in writing, software
+*   distributed under the License is distributed on an "AS IS" BASIS,
+*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+*   See the License for the specific language governing permissions and
+*  limitations under the License.
+*/
+package org.apache.xmlbeans.test.performance.svn;
+
+import java.io.CharArrayReader;
+
+import org.apache.xmlbeans.XmlCursor;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.test.performance.utils.Constants;
+import org.apache.xmlbeans.test.performance.utils.PerfUtil;
+
+public class CursorGetSetGetAttributeSVN
+{
+
+  public static void main(String[] args) throws Exception
+  {
+
+    final int iterations = Constants.GET_SET_ITERATIONS;
+    String flavor;
+    int stringSize = 0;
+
+    // the only flavors that should be used are
+    // deep-attributes and wide-attributes
+    // because this scenario focuses on attribute values
+    if(args.length == 0)
+      flavor = "deep-attributes";
+    else
+      flavor = args[0];
+
+    // the size of the string used is the second arg or default if not specified
+    if(args.length < 2)
+    {
+      stringSize = Constants.STRING_SIZE;
+    }
+    else
+    {
+      stringSize = Integer.parseInt(args[1]);
+    }
+
+    // create the string to be used for the set
+    PerfUtil util = new PerfUtil();
+    String stringToSet = util.createString(stringSize);
+    CursorGetSetGetAttributeSVN test = new CursorGetSetGetAttributeSVN();
+    long cputime;
+    int hash = 0;
+
+    // get the xml cursor
+    char[] chars = util.createXmlData(flavor, Constants.XML_SIZE);
+    XmlObject doc = XmlObject.Factory.parse(new CharArrayReader(chars));
+    XmlCursor cursor = doc.newCursor();
+
+    // warm up the vm
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor, stringToSet);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+
+    // run it again for the real measurement
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor, stringToSet);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+      
+    // print the results
+    // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
+    System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" flavor="+flavor+" sizetoset="+stringToSet.length()+" ");
+    System.out.print("hash "+hash+" ");
+    System.out.print("time "+cputime+" ");
+    System.out.print("time/it " + ((double)cputime)/((double)iterations) + "\n");
+  }
+
+  private int run(XmlCursor p_cursor, String p_setval) throws Exception
+  {
+    p_cursor.toFirstChild();
+    p_cursor.toFirstChild();
+    p_cursor.toFirstAttribute();
+    p_cursor.getTextValue();
+    p_cursor.setTextValue(p_setval);
+    return p_cursor.getTextValue().length() * 17;
+  }
+}

Added: xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetElementSVN.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetElementSVN.java?rev=233577&view=auto
==============================================================================
--- xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetElementSVN.java (added)
+++ xmlbeans/trunk/test/perf/src/org/apache/xmlbeans/test/performance/svn/CursorGetSetGetElementSVN.java Fri Aug 19 16:32:14 2005
@@ -0,0 +1,96 @@
+/*   Copyright 2004 The Apache Software Foundation
+*
+*   Licensed under the Apache License, Version 2.0 (the "License");
+*   you may not use this file except in compliance with the License.
+*   You may obtain a copy of the License at
+*
+*       http://www.apache.org/licenses/LICENSE-2.0
+*
+*   Unless required by applicable law or agreed to in writing, software
+*   distributed under the License is distributed on an "AS IS" BASIS,
+*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+*   See the License for the specific language governing permissions and
+*  limitations under the License.
+*/
+package org.apache.xmlbeans.test.performance.svn;
+
+import java.io.CharArrayReader;
+
+import org.apache.xmlbeans.XmlCursor;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.test.performance.utils.Constants;
+import org.apache.xmlbeans.test.performance.utils.PerfUtil;
+
+public class CursorGetSetGetElementSVN
+{
+
+  public static void main(String[] args) throws Exception
+  {
+
+    final int iterations = Constants.GET_SET_ITERATIONS;
+    String flavor;
+    int stringSize = 0;
+
+    // the only flavors that should be used are
+    // wide-text and any others that have text values (none of as 8/18/04)
+    // because this scenario focuses on element values
+    if(args.length == 0)
+      flavor = "wide-text";
+    else
+      flavor = args[0];
+
+    // the size of the string used is the second arg or default if not specified
+    if(args.length < 2)
+    {
+      stringSize = Constants.STRING_SIZE;
+    }
+    else
+    {
+      stringSize = Integer.parseInt(args[1]);
+    }
+
+    // create the string to be used for the set
+    PerfUtil util = new PerfUtil();
+    String stringToSet = util.createString(stringSize);
+    CursorGetSetGetElementSVN test = new CursorGetSetGetElementSVN();
+    long cputime;
+    int hash = 0;
+
+    // get the xml cursor
+    char[] chars = util.createXmlData(flavor, Constants.XML_SIZE);
+    XmlObject doc = XmlObject.Factory.parse(new CharArrayReader(chars));
+    XmlCursor cursor = doc.newCursor();
+
+    // warm up the vm
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor, stringToSet);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+
+    // run it again for the real measurement
+    cputime = System.currentTimeMillis();
+    for(int i=0; i<iterations; i++){     
+      hash += test.run(cursor, stringToSet);
+      cursor.toStartDoc();
+    }
+    cputime = System.currentTimeMillis() - cputime;
+      
+    // print the results
+    // Class.getSimpleName() is only provided in jdk1.5, so have to trim package name off test name for logging to support 1.4
+    System.out.print(Constants.DELIM+test.getClass().getName().substring(test.getClass().getName().lastIndexOf('.')+1)+" flavor="+flavor+" sizetoset="+stringToSet.length()+" ");
+    System.out.print("hash "+hash+" ");
+    System.out.print("time "+cputime+" ");
+    System.out.print("time/it " + ((double)cputime)/((double)iterations) + "\n");
+  }
+
+  private int run(XmlCursor p_cursor, String p_setval) throws Exception
+  {
+    p_cursor.toFirstChild();
+    p_cursor.toFirstChild();
+    p_cursor.getTextValue();
+    p_cursor.setTextValue(p_setval);
+    return p_cursor.getTextValue().length() * 17;
+  }
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message