db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/xdocs performance.xml
Date Wed, 25 Jun 2003 16:43:19 GMT
arminw      2003/06/25 09:43:19

  Modified:    xdocs    performance.xml
  Log:
  made minor changes to reflect
  'perf-test' update
  
  Revision  Changes    Path
  1.12      +47 -33    db-ojb/xdocs/performance.xml
  
  Index: performance.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/xdocs/performance.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- performance.xml	15 Jun 2003 12:01:06 -0000	1.11
  +++ performance.xml	25 Jun 2003 16:43:18 -0000	1.12
  @@ -72,11 +72,11 @@
       or
       bin/build.sh targetName
   </source>
  -The following targets exist:
  +The following 'targets' exist:
   <ul>
   <li><code>performance</code> test OJB API implementations (PB, ODMG)
against native JDBC</li>
  -<li><code>perf-test</code> multithreaded performance/stress test of PB/ODMG
api</li>
  -<li>[<code>performance3</code> multithreaded test against two different
databases]</li>
  +<li><code>perf-test</code> multithreaded performance/stress test of PB/ODMG
api against native JDBC</li>
  +<li>[<code>performance3</code> multithreaded test against two different
databases - developers test]</li>
   </ul>
   </p>
   <p>
  @@ -119,9 +119,11 @@
   
   <subsection name="How OJB compares to native JDBC programming?" anchor="Compares">
   <p>
  -OJB is shipped with a test compares native JDBC with ODMG and
  +OJB is shipped with tests compares native JDBC with ODMG and
   PB-API implementation.
  -This part of the test suite is integrated into the OJB build mechanism. You can
  +This part of the test suite is integrated into the OJB build mechanism.
  +<br/>
  +A single client test you can
   invoke it by typing <code>bin\build.bat performance</code> or
   <code>bin/build.sh performance</code>.
   </p>
  @@ -235,8 +237,6 @@
   	</li>
   </ul>
   </p>
  -
  -
   <p>
   It's easy to change target database. Please
   refer to this <a href="platforms.html">document for details</a>.
  @@ -244,7 +244,9 @@
   Also it's possible to change the number of test objects by
   editing the ant-target in build.xml.
   </p>
  -
  +<p>
  +Another test compares PB-api,ODMG-api and native JDBC you can find <a href="Multithreaded">next
section</a>.
  +</p>
   </subsection>
   
   
  @@ -255,9 +257,12 @@
   <p>
   This test was created to check the performance and stability of the
   supported API's (PB-api, ODMG-api, JDO-api) in a multithreaded environment.
  -Running this test out of the box (a virgin OJB version) shouldn't cause any problems.
  +Also this test compares the api's and native JDBC.
  +<br/>
  +Running this test out of the box (a virgin OJB version against hsql) shouldn't cause any
problems.
   To run the JDO-api test too, see <a href="tutorial4.html">JDO tutorial</a>
and comment in
  -the test in target <code>perf-test</code> in <code>build.xml</code>
(<i>currently not implemented!</i>).
  +the test in target <code>perf-test</code> in <code>build.xml</code>
  +(<font color="#0000FF"><i>currently JDO test is not supported!</i></font>).
   </p>
   <p>
   Per default OJB use hsql as database, by changing the JdbcConnectionDescriptor
  @@ -267,26 +272,32 @@
   
   <p>
   To run the multithreaded performance test call
  -<code>bin\build.bat perf-test</code> or
  -<code>bin/build.sh perf-test</code>.
  +<source>
  +bin\build.bat perf-test
  +
  +or
  +
  +bin/build.sh perf-test
  +</source>
   </p>
   
   <p>
  -A typical output of this test looks like:
  +A typical output of this test looks like (OJB against hsql server, 2-tier):
   <source>
  -[ojb] =================================================================
  -[ojb]              OJB PERFORMANCE TEST SUMMARY
  +[ojb] ========================================================
  +[ojb]         OJB PERFORMANCE TEST SUMMARY
   [ojb] 10 concurrent threads, handle 2000 objects per thread
  -[ojb]              - performance mode
  -[ojb] =================================================================
  -[ojb]           API  Test Period       Insert        Fetch       Delete
  -[ojb]                      [sec]       [msec]       [msec]       [msec]
  -[ojb] -----------------------------------------------------------------
  -[ojb]          ODMG       46.083        25654         6204         8303
  -[ojb]            PB       16.811        11864          175         2317
  -[ojb] =================================================================
  +[ojb]         - performance mode
  +[ojb] ========================================================
  +[ojb]      API  Period   Total  Insert   Fetch  Update  Delete
  +[ojb]            [sec]   [sec]  [msec]  [msec]  [msec]  [msec]
  +[ojb] --------------------------------------------------------
  +[ojb]     JDBC  25.934  25.703   10843     342    9861    4656
  +[ojb]       PB  26.461   26.21   11298     427    9889    4595
  +[ojb]     ODMG  55.146  49.341   25979   11249    5852    6260
  +[ojb] ========================================================
   
  -[ojb] PerfTest takes 200 [sec]
  +[ojb] PerfTest takes 329 [sec]
   </source>
   </p>
   <p>
  @@ -323,14 +334,6 @@
   <p>
   <b>Steps to set up the test:</b>
   <br/>
  -<p>
  -You can find a example implementation called
  -<code>org.apache.ojb.broker.OJBPerfTest</code> in the test-sources directory
  -under <code>[db-ojb]/src/test/org/apache/ojb</code> (when using source-distribution).
  -This implementation class is used to compare the PB-API with ODMG-API and to test
  -the performance of the API implementations. See more section
  -<a href="#Multithreaded">multi-threaded performance</a>
  -</p>
   <ul>
   <li>Implement a class derived from <code>org.apache.ojb.performance.PerfTest</code></li>
   <li>Implement a class derived from <code>org.apache.ojb.performance.PerfHandle</code></li>
  @@ -342,6 +345,17 @@
   Otherwise the test use a default implementation of this interface.]</li>
   </ul>
   That's it!
  +</p>
  +
  +<p>
  +You can find a example implementation called
  +<code>org.apache.ojb.broker.OJBPerfTest</code> in the test-sources directory
  +under <code>[db-ojb]/src/test/org/apache/ojb</code> (when using source-distribution).
  +This implementation class is used to compare the PB-API, ODMG-API and native JDBC and
  + to test performance of the API implementations. See more section
  +<a href="#Multithreaded">multi-threaded performance</a>. <code>OJBPerfTest</code>
  +is made up of inner classes. At each case two inner classes represent a test for
  +one api (as described above).
   </p>
   
   <p>
  
  
  

Mime
View raw message