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

Class TransBench2

source code


Performs a benchmark writing objects using a new Transaction but re-using a single connection for each test.

Instance Methods [hide private]
 
__init__(self, key, value, operations)
Create a new runnable.
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 BenchRunnable2
 
cleanup(self)
Will be called before the end of the benchmark.
source code
 
init(self)
Will be called at the start of the benchmark.
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
 
pre_init(self, j=None)
Will be called before the benchmark starts with all possible variations of "j" in the operation() call.
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)

operation(self, j)

source code 

The operation to execute during the benchmark.

Overrides: BenchRunnable.operation
(inherited documentation)