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

Class TransIncrementBench3

source code


Performs a benchmark writing objects using a single Transaction object for all tests.

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

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 TransIncrementBench
 
operation2(self, tx, j) 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
    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
 
getSpeed(self) 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, operations)
(Constructor)

source code 

Create a new runnable.

Overrides: object.__init__
(inherited documentation)

init(self)

source code 

Will be called at the start of the benchmark.

Overrides: BenchRunnable.init
(inherited documentation)

cleanup(self)

source code 

Will be called before the end of the benchmark.

Overrides: BenchRunnable.cleanup
(inherited documentation)

operation(self, j)

source code 

The operation to execute during the benchmark.

Overrides: BenchRunnable.operation
(inherited documentation)