public final class BenchmarkEntry extends com.google.protobuf.GeneratedMessageV3 implements BenchmarkEntryOrBuilder
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| Modifier and Type | Class and Description |
|---|---|
static class |
BenchmarkEntry.Builder
Each unit test or benchmark in a test or benchmark run provides
some set of information.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CPU_TIME_FIELD_NUMBER |
static int |
EXTRAS_FIELD_NUMBER |
static int |
ITERS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
THROUGHPUT_FIELD_NUMBER |
static int |
WALL_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
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)
|
static BenchmarkEntry |
getDefaultInstance() |
BenchmarkEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,EntryValue> |
getExtras()
Deprecated.
|
int |
getExtrasCount()
Generic map from result key to value.
|
Map<String,EntryValue> |
getExtrasMap()
Generic map from result key to value.
|
EntryValue |
getExtrasOrDefault(String key,
EntryValue defaultValue)
Generic map from result key to value.
|
EntryValue |
getExtrasOrThrow(String key)
Generic map from result key to value.
|
long |
getIters()
If a benchmark, how many iterations it was run for
|
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.
|
com.google.protobuf.Parser<BenchmarkEntry> |
getParserForType() |
int |
getSerializedSize() |
double |
getThroughput()
Throughput (in MB/s)
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
double |
getWallTime()
Total wall time used for all iterations (in seconds)
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static BenchmarkEntry.Builder |
newBuilder() |
static BenchmarkEntry.Builder |
newBuilder(BenchmarkEntry prototype) |
BenchmarkEntry.Builder |
newBuilderForType() |
protected BenchmarkEntry.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static BenchmarkEntry |
parseDelimitedFrom(InputStream input) |
static BenchmarkEntry |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(byte[] data) |
static BenchmarkEntry |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(ByteBuffer data) |
static BenchmarkEntry |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.ByteString data) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(InputStream input) |
static BenchmarkEntry |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BenchmarkEntry> |
parser() |
BenchmarkEntry.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ITERS_FIELD_NUMBER
public static final int CPU_TIME_FIELD_NUMBER
public static final int WALL_TIME_FIELD_NUMBER
public static final int THROUGHPUT_FIELD_NUMBER
public static final int EXTRAS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;getName in interface BenchmarkEntryOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;getNameBytes in interface BenchmarkEntryOrBuilderpublic long getIters()
If a benchmark, how many iterations it was run for
int64 iters = 2;getIters in interface BenchmarkEntryOrBuilderpublic double getCpuTime()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;getCpuTime in interface BenchmarkEntryOrBuilderpublic double getWallTime()
Total wall time used for all iterations (in seconds)
double wall_time = 4;getWallTime in interface BenchmarkEntryOrBuilderpublic double getThroughput()
Throughput (in MB/s)
double throughput = 5;getThroughput in interface BenchmarkEntryOrBuilderpublic int getExtrasCount()
BenchmarkEntryOrBuilderGeneric map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasCount in interface BenchmarkEntryOrBuilderpublic boolean containsExtras(String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;containsExtras in interface BenchmarkEntryOrBuilder@Deprecated public Map<String,EntryValue> getExtras()
getExtrasMap() instead.getExtras in interface BenchmarkEntryOrBuilderpublic Map<String,EntryValue> getExtrasMap()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasMap in interface BenchmarkEntryOrBuilderpublic EntryValue getExtrasOrDefault(String key, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasOrDefault in interface BenchmarkEntryOrBuilderpublic EntryValue getExtrasOrThrow(String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasOrThrow in interface BenchmarkEntryOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BenchmarkEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BenchmarkEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BenchmarkEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BenchmarkEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BenchmarkEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BenchmarkEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BenchmarkEntry parseFrom(InputStream input) throws IOException
IOExceptionpublic static BenchmarkEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BenchmarkEntry parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BenchmarkEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BenchmarkEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BenchmarkEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BenchmarkEntry.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BenchmarkEntry.Builder newBuilder()
public static BenchmarkEntry.Builder newBuilder(BenchmarkEntry prototype)
public BenchmarkEntry.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BenchmarkEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BenchmarkEntry getDefaultInstance()
public static com.google.protobuf.Parser<BenchmarkEntry> parser()
public com.google.protobuf.Parser<BenchmarkEntry> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BenchmarkEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2015–2019. All rights reserved.