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

Class TransReadXWriteXBench

source code


Performs a benchmark reading X values and overwriting them afterwards inside a transaction. Provides convenience methods for the full read-x, write-x benchmark implementations.

Instance Methods [hide private]
 
__init__(self, key, value, nr_keys, operations)
Create a new runnable.
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
 
operation2(self, tx, j) 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__

    Inherited from BenchRunnable
 
_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
 
cleanup(self)
Will be called before the end of the benchmark.
source code
 
getSpeed(self) source code
 
init(self)
Will be called at the start of the benchmark.
source code
 
operation(self, j)
The operation to execute during the benchmark.
source code
 
run(self)
Method representing the thread's activity.
source code
 
shouldStop(self) source code
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, nr_keys, operations)
(Constructor)

source code 

Create a new runnable.

Overrides: object.__init__
(inherited documentation)

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.

Overrides: BenchRunnable.pre_init
(inherited documentation)