public class Sample extends Object
| Constructor and Description |
|---|
Sample() |
Sample(int jobCount,
int msgSize,
long start,
long end,
Connection nc)
Constructs a new benchmark sample.
|
| Modifier and Type | Method and Description |
|---|---|
long |
duration()
Duration that the sample was active (ns).
|
long |
rate()
Rate of messages in the job per second.
|
double |
seconds() |
double |
throughput()
Throughput of bytes per second.
|
String |
toString()
.
|
public Sample()
public Sample(int jobCount,
int msgSize,
long start,
long end,
Connection nc)
jobCount - the number of messages that were sent or receivedmsgSize - the size in bytes of each messagesstart - the start time in nanosecondsend - the end time in nanosecondsnc - the NATs connectionpublic long duration()
public double throughput()
public long rate()
public double seconds()
Copyright © 2015–2016 Apcera, Inc.. All rights reserved.