| The OJB stress/performance test - a simple performance test application to
run O/R mapper in a simulated single/multi-threaded environment.
You have two possibilities to run this test:
- use the OJB build script and call
ant perf-test
- or for standalone use perform the test class by yourself
java -classpath CLASSPATH org.apache.ojb.performance.PerfMain
[comma separated list of PerfTest implementation classes, no blanks!]
[number of test loops, default '5']
[number of threads, default '10']
[number of insert/fetch/delete loops per thread, default '100']
[boolean - run in stress mode if set true, run in performance mode if set false, default 'false']
[boolean - if 'true' all log messages will be print, else only a test summary, default 'true']
For example:
java -classpath CLASSPATH my.MyPerfTest,myMyPerfTest2 3 10 200 false true
version: $Id: PerfMain.java,v 1.9.2.7 2005/12/30 00:01:42 arminw Exp $ |