public static final class
BenchmarkEntry.Builder
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
Public Methods
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
MetricEntry.Builder |
addMetricsBuilder(int index)
Metric name, value and expected range. |
MetricEntry.Builder |
addMetricsBuilder()
Metric name, value and expected range. |
BenchmarkEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
BenchmarkEntry |
build()
|
BenchmarkEntry | |
BenchmarkEntry.Builder |
clear()
|
BenchmarkEntry.Builder |
clearCpuTime()
Total cpu time used for all iterations (in seconds) double cpu_time = 3;
|
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
BenchmarkEntry.Builder |
clearIters()
If a benchmark, how many iterations it was run for int64 iters = 2;
|
BenchmarkEntry.Builder |
clearMetrics()
Metric name, value and expected range. |
BenchmarkEntry.Builder |
clearName()
The name of the specific benchmark or test (e.g. |
BenchmarkEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
BenchmarkEntry.Builder |
clearThroughput()
Throughput (in MB/s) double throughput = 5;
|
BenchmarkEntry.Builder |
clearWallTime()
Total wall time used for all iterations (in seconds) double wall_time = 4;
|
BenchmarkEntry.Builder |
clone()
|
boolean |
containsExtras(String key)
Generic map from result key to value. |
double |
getCpuTime()
Total cpu time used for all iterations (in seconds) double cpu_time = 3;
|
BenchmarkEntry | |
final static com.google.protobuf.Descriptors.Descriptor | |
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. |
MetricEntry.Builder |
getMetricsBuilder(int index)
Metric name, value and expected range. |
List<MetricEntry.Builder> |
getMetricsBuilderList()
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. |
Map<String, EntryValue> |
getMutableExtras()
Use alternate mutation accessors instead.
|
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. |
double |
getThroughput()
Throughput (in MB/s) double throughput = 5;
|
double |
getWallTime()
Total wall time used for all iterations (in seconds) double wall_time = 4;
|
final boolean | |
BenchmarkEntry.Builder |
mergeFrom(com.google.protobuf.Message other)
|
BenchmarkEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
final BenchmarkEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder |
removeExtras(String key)
Generic map from result key to value. |
BenchmarkEntry.Builder |
removeMetrics(int index)
Metric name, value and expected range. |
BenchmarkEntry.Builder |
setCpuTime(double value)
Total cpu time used for all iterations (in seconds) double cpu_time = 3;
|
BenchmarkEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
BenchmarkEntry.Builder |
setIters(long value)
If a benchmark, how many iterations it was run for int64 iters = 2;
|
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder |
setName(String value)
The name of the specific benchmark or test (e.g. |
BenchmarkEntry.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the specific benchmark or test (e.g. |
BenchmarkEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
BenchmarkEntry.Builder |
setThroughput(double value)
Throughput (in MB/s) double throughput = 5;
|
final BenchmarkEntry.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
BenchmarkEntry.Builder |
setWallTime(double value)
Total wall time used for all iterations (in seconds) double wall_time = 4;
|