public final class
BenchmarkEntry
Each unit test or benchmark in a test or benchmark run provides some set of information. Here we provide some reasonable keys one would expect to see, with optional key/value pairs for things we haven't considered. This BenchmarkEntry should be emitted by each unit test or benchmark reporter.Protobuf type
tensorflow.BenchmarkEntry
Nested Classes
class | BenchmarkEntry.Builder | Each unit test or benchmark in a test or benchmark run provides some set of information. |
Constants
int | CPU_TIME_FIELD_NUMBER | |
int | EXTRAS_FIELD_NUMBER | |
int | ITERS_FIELD_NUMBER | |
int | METRICS_FIELD_NUMBER | |
int | NAME_FIELD_NUMBER | |
int | THROUGHPUT_FIELD_NUMBER | |
int | WALL_TIME_FIELD_NUMBER |
Public Methods
boolean |
containsExtras(String key)
Generic map from result key to value. |
boolean |
equals(Object obj)
|
double |
getCpuTime()
Total cpu time used for all iterations (in seconds) double cpu_time = 3;
|
static BenchmarkEntry | |
BenchmarkEntry | |
final static com.google.protobuf.Descriptors.Descriptor | |
Map<String, EntryValue> |
getExtras()
Use
getExtrasMap() instead. |
int |
getExtrasCount()
Generic map from result key to value. |
Map<String, EntryValue> |
getExtrasMap()
Generic map from result key to value. |
EntryValue | |
EntryValue |
getExtrasOrThrow(String key)
Generic map from result key to value. |
long |
getIters()
If a benchmark, how many iterations it was run for int64 iters = 2;
|
MetricEntry |
getMetrics(int index)
Metric name, value and expected range. |
int |
getMetricsCount()
Metric name, value and expected range. |
List<MetricEntry> |
getMetricsList()
Metric name, value and expected range. |
MetricEntryOrBuilder |
getMetricsOrBuilder(int index)
Metric name, value and expected range. |
List<? extends MetricEntryOrBuilder> |
getMetricsOrBuilderList()
Metric name, value and expected range. |
String |
getName()
The name of the specific benchmark or test (e.g. |
com.google.protobuf.ByteString |
getNameBytes()
The name of the specific benchmark or test (e.g. |
|
|
int | |
double |
getThroughput()
Throughput (in MB/s) double throughput = 5;
|
final com.google.protobuf.UnknownFieldSet | |
double |
getWallTime()
Total wall time used for all iterations (in seconds) double wall_time = 4;
|
int |
hashCode()
|
final boolean | |
static BenchmarkEntry.Builder | |
static BenchmarkEntry.Builder |
newBuilder(BenchmarkEntry prototype)
|
BenchmarkEntry.Builder | |
static BenchmarkEntry |
parseDelimitedFrom(InputStream input)
|
static BenchmarkEntry |
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static BenchmarkEntry |
parseFrom(ByteBuffer data)
|
static BenchmarkEntry |
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static BenchmarkEntry |
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static BenchmarkEntry |
parseFrom(com.google.protobuf.CodedInputStream input)
|
static BenchmarkEntry |
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static BenchmarkEntry |
parseFrom(com.google.protobuf.ByteString data)
|
static BenchmarkEntry |
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static BenchmarkEntry |
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
static
|
parser()
|
BenchmarkEntry.Builder | |
void |
writeTo(com.google.protobuf.CodedOutputStream output)
|
Inherited Methods
Constants
public static final int CPU_TIME_FIELD_NUMBER
Constant Value:
3
public static final int EXTRAS_FIELD_NUMBER
Constant Value:
6
public static final int ITERS_FIELD_NUMBER
Constant Value:
2
public static final int METRICS_FIELD_NUMBER
Constant Value:
7
public static final int NAME_FIELD_NUMBER
Constant Value:
1
public static final int THROUGHPUT_FIELD_NUMBER
Constant Value:
5
public static final int WALL_TIME_FIELD_NUMBER
Constant Value:
4