Module scalaris_bench :: Class BenchRunnable
[hide private]
[frames] | no frames]

Class BenchRunnable

source code


Abstract base class of a test run that is to be run in a thread.

Instance Methods [hide private]
 
__init__(self, key, value, operations)
Create a new runnable.
source code
 
_testBegin(self)
Call this method when a benchmark is started.
source code
 
_testEnd(self, testRuns)
Call this method when a benchmark is finished.
source code
 
pre_init(self, j=None)
Will be called before the benchmark starts with all possible variations of "j" in the operation() call.
source code
 
init(self)
Will be called at the start of the benchmark.
source code
 
cleanup(self)
Will be called before the end of the benchmark.
source code
 
operation(self, j)
The operation to execute during the benchmark.
source code
 
run(self) source code
 
getSpeed(self) source code
 
shouldStop(self) source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

Inherited from threading.Thread (private): _reset_internal_locks, _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from threading.Thread: daemon, ident, name

Inherited from threading.Thread (private): _block

Inherited from object: __class__

Method Details [hide private]

__init__(self, key, value, operations)
(Constructor)

source code 

Create a new runnable.

Overrides: object.__init__

_testBegin(self)

source code 

Call this method when a benchmark is started. Sets the time the benchmark was started.

_testEnd(self, testRuns)

source code 

Call this method when a benchmark is finished. Calculates the time the benchmark took and the number of transactions performed during this time.

pre_init(self, j=None)

source code 

Will be called before the benchmark starts with all possible variations of "j" in the operation() call. "j" with None is the overall initialisation run at first.

run(self)

source code 
Overrides: threading.Thread.run