public class FastStringBenchmark extends Benchmark
Transaction
and
TransactionSingleOp
class using custom objects
provided by ErlangValueFastString
and ErlangValueBitString
.
Run the benchmark with
java -cp scalaris-examples.jar de.zib.scalaris.examples.FastStringBenchmark
Constructor and Description |
---|
FastStringBenchmark() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Runs a mini benchmark of the
Transaction and
TransactionSingleOp class using custom objects
provided by ErlangValueFastString and
ErlangValueBitString . |
static void |
minibench(int operations,
int threadsPerNode,
Set<Integer> benchmarks)
Runs the benchmark.
|
public static void main(String[] args)
Transaction
and
TransactionSingleOp
class using custom objects
provided by ErlangValueFastString
and
ErlangValueBitString
. Accepts the same parameters as the
Main.main(String[])
method's benchmark parameter.args
- command line argumentsMain.main(String[])
public static void minibench(int operations, int threadsPerNode, Set<Integer> benchmarks)
OtpErlangBinary
objects (random data, size = Benchmark.BENCH_DATA_SIZE
)OtpErlangString
objects (random data, size = Benchmark.BENCH_DATA_SIZE
)String
objects (random data, size = Benchmark.BENCH_DATA_SIZE
)String
objects by converting them to OtpErlangBinary
s
(random data, size = Benchmark.BENCH_DATA_SIZE
)Transaction
for each test,Transaction
but re-using a single Connection
,Transaction
object.operations
- the number of test runs to executethreadsPerNode
- number of threads to spawn for each existing Scalaris nodebenchmarks
- the benchmarks to run (1-9 or -1 for all benchmarks)