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.
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
Public Methods
public boolean containsExtras (String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public boolean equals (Object obj)
public double getCpuTime ()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public int getExtrasCount ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public Map<String, EntryValue> getExtrasMap ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public EntryValue getExtrasOrDefault (String key, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public EntryValue getExtrasOrThrow (String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public long getIters ()
If a benchmark, how many iterations it was run for
int64 iters = 2;
public MetricEntry getMetrics (int index)
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;
public int getMetricsCount ()
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;
public List<MetricEntry> getMetricsList ()
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;
public MetricEntryOrBuilder getMetricsOrBuilder (int index)
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;
public List<? extends MetricEntryOrBuilder> getMetricsOrBuilderList ()
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;
public String getName ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
public com.google.protobuf.ByteString getNameBytes ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
public
getParserForType
()
public int getSerializedSize ()
public double getThroughput ()
Throughput (in MB/s)
double throughput = 5;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public double getWallTime ()
Total wall time used for all iterations (in seconds)
double wall_time = 4;
public int hashCode ()
public final boolean isInitialized ()
public static BenchmarkEntry parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static BenchmarkEntry parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static BenchmarkEntry parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static BenchmarkEntry parseFrom (com.google.protobuf.CodedInputStream input)
Throws
IOException |
---|
public static BenchmarkEntry parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public static BenchmarkEntry parseFrom (com.google.protobuf.ByteString data)
Throws
InvalidProtocolBufferException |
---|
public static BenchmarkEntry parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public static BenchmarkEntry parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
InvalidProtocolBufferException |
---|
public
static
parser
()
public void writeTo (com.google.protobuf.CodedOutputStream output)
Throws
IOException |
---|