ostore.apps.test
Class ReadTputMicroBenchmark

java.lang.Object
  |
  +--ostore.apps.test.ReadTputMicroBenchmark
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class ReadTputMicroBenchmark
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: ReadTputMicroBenchmark.java,v 1.4 2002/10/17 16:58:36 jeffpang Exp $
Author:
Patrick R. Eaton, Hakim Weatherspoon

Nested Class Summary
static class ReadTputMicroBenchmark.EventTrigger
           
 
Constructor Summary
ReadTputMicroBenchmark()
           
 
Method Summary
 void destroy()
           
 void handleEvent(QueueElementIF element)
           
 void handleEvents(QueueElementIF[] element_array)
           
 void init(ConfigDataIF config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadTputMicroBenchmark

public ReadTputMicroBenchmark()
Method Detail

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