Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.control.test
Class Speed  view Speed download Speed.java

java.lang.Object
  extended bycom.eireneh.bible.control.test.Speed
All Implemented Interfaces:
java.lang.Runnable

public class Speed
extends java.lang.Object
implements java.lang.Runnable

Speed is a simple benchmark that tests how fast a version is. The current set of tasks that we perform are rather arbitry (sp?). But that is something that we can improve on when we have more usage information.

Progress report. All builds are Debug unless *ed:

 Date          Bible       VM              Time/s
 1999.12.08    Raw (Mem)   HS 1.0.1         20
 1999.12.08    Raw (Mem)   MVM 5.00.3167   541
 1999.12.09    Raw (Disk)  HS 1.0.1       >600
 1999.12.10    Ser         HS 1.0.1         78
 1999.12.11    Ser         HS 1.0.1          6.7
 1999.12.11    Raw (Mem)   HS 1.0.1         11
 1999.12.11    Raw (Disk)  HS 1.0.1       1072
 1999.12.11    Ser         MVM 5.00.3167     8
 1999.12.12    Ser         HS 1.0.1          4
 1999.12.12    Ser *       HS 1.0.1          3
 

Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.

Version:
D0.I0.T0

Field Summary
private  long end_time
          The end time of the benchmark
private  com.eireneh.bible.control.search.Engine engine
          The search engine.
private  com.eireneh.bible.control.search.Matcher match
          The matching engine.
private  long start_time
          The start time of the benchmark
private  com.eireneh.bible.book.Bible version
          The version to test
 
Constructor Summary
Speed(com.eireneh.bible.book.Bible version)
          Basic constructor
 
Method Summary
private  void dummyDisplay(com.eireneh.bible.passage.Passage ref)
          Dummy display routine.
 long getBenchmark()
          Accessor for the version that we are testing
 com.eireneh.bible.book.Bible getBible()
          Accessor for the version that we are testing
 void run()
          This is what to call to execute a benchmark
 void setBible(com.eireneh.bible.book.Bible version)
          Accessor for the version that we are testing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

private com.eireneh.bible.control.search.Engine engine
The search engine. Only used by run() but construction is not under test


match

private com.eireneh.bible.control.search.Matcher match
The matching engine. Only used by run() but construction is not under test


start_time

private long start_time
The start time of the benchmark


end_time

private long end_time
The end time of the benchmark


version

private com.eireneh.bible.book.Bible version
The version to test

Constructor Detail

Speed

public Speed(com.eireneh.bible.book.Bible version)
Basic constructor

Method Detail

run

public void run()
This is what to call to execute a benchmark

Specified by:
run in interface java.lang.Runnable

dummyDisplay

private void dummyDisplay(com.eireneh.bible.passage.Passage ref)
                   throws java.lang.Exception
Dummy display routine. We might want to add some XSL styling to this.


getBenchmark

public long getBenchmark()
Accessor for the version that we are testing


getBible

public com.eireneh.bible.book.Bible getBible()
Accessor for the version that we are testing


setBible

public void setBible(com.eireneh.bible.book.Bible version)
Accessor for the version that we are testing