ostore.apps.test
Class ReplaceMicroBenchmark
java.lang.Object
  |
  +--ostore.apps.test.ReplaceMicroBenchmark
- All Implemented Interfaces: 
 - EventHandlerIF, SingleThreadedEventHandlerIF
 
- public class ReplaceMicroBenchmark
- extends Object
- implements SingleThreadedEventHandlerIF, EventHandlerIF
   
  The ReplaceMicroBenchmark reports the results of a
  simple microbenchmark that performs a number of replace
  operations on a single data object.  The benchmark initializes,
  creates a single object, appends a specified amount of data to
  the object, and then begins the benchmark.  The benchmark
  operates in two phases, an initialization phase and a test phase.
  The two phase perform identical operations.  Operations during
  the initialization phase are not, however, measured.  The
  initialization phase serves to warm the caches, remove JIT
  irregularities, etc..  During each phase, the benchmark pauses a
  user-defined period and then submits and update.  The user may
  define an additional pause inter-phase pause period.  During the
  test phase, the benchmark records the time elapsed between the
  dispatch of the update to the receipt of the result of the
  update.
  
  
  Initialization Parameters: The
  ReplaceMicroBenchmark is controlled by a number
  initialization parameters.  These parameters and their result are
  described below.
  
  
  - InitLength
 
  - The number of operations to perform during the initialization
  phase.
 
  - InitPauseTime
 
  - The amount of time (in milliseconds) to pause before
  submitting an update during the initialization phase.
 
  - SettleTime
 
  - The amount of time (in milliseconds) to pause between the
  initialization phase and the test phase.
 
  - TestLength
 
  - The number of operations to perform during the test
  phase.
 
  - TestPauseTime
 
  - The amount of time (in milliseconds) to pause before
  submitting an update during the test phase.
 
  - DobjSize
 
  - The size of the data object on which the benchmark will be
  performed.
 
  - ReplaceSize
 
  - The number of bytes to modify in each update.
 
  
- Version: 
 
  - $Id: ReplaceMicroBenchmark.java,v 1.12 2003/02/13 09:43:53 hweather Exp $
 
- Author: 
 
  - Patrick R. Eaton
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ReplaceMicroBenchmark
public ReplaceMicroBenchmark()
handleEvent
public void handleEvent(QueueElementIF element)
                 throws EventHandlerException
- Specified by: 
 handleEvent in interface EventHandlerIF
 
EventHandlerException
 
handleEvents
public void handleEvents(QueueElementIF[] element_array)
                  throws EventHandlerException
- Specified by: 
 handleEvents in interface EventHandlerIF
 
EventHandlerException
 
init
public void init(ConfigDataIF config)
          throws Exception
- Specified by: 
 init in interface EventHandlerIF
 
Exception
 
destroy
public void destroy()
             throws Exception
- Specified by: 
 destroy in interface EventHandlerIF
 
Exception