pub struct TestResults {
pub target: String,
pub entries: Option<BenchmarkEntries>,
pub build_configuration: Option<BuildConfiguration>,
pub commit_id: Option<CommitId>,
pub start_time: i64,
pub run_time: f64,
pub machine_configuration: Option<MachineConfiguration>,
pub run_configuration: Option<RunConfiguration>,
pub name: String,
pub benchmark_type: i32,
pub run_mode: String,
pub tf_version: String,
}
Expand description
The output of one benchmark / test run. Each run contains a list of tests or benchmarks, stored as BenchmarkEntry messages.
This message should be emitted by the reporter (which runs the test / BM in a subprocess and then reads the emitted BenchmarkEntry messages; usually from a serialized json file, finally collecting them along with additional information about the test run.
Fields§
§target: String
The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
entries: Option<BenchmarkEntries>
The list of tests or benchmarks in this run.
build_configuration: Option<BuildConfiguration>
The configuration of the build (compiled opt? with cuda? any copts?)
commit_id: Option<CommitId>
The commit id (git hash or changelist)
start_time: i64
The time the run started (in seconds of UTC time since Unix epoch)
run_time: f64
The amount of time the total run took (wall time in seconds)
machine_configuration: Option<MachineConfiguration>
Machine-specific parameters (Platform and CPU info)
run_configuration: Option<RunConfiguration>
Run-specific parameters (arguments, etc)
name: String
Benchmark target identifier.
benchmark_type: i32
§run_mode: String
Used for differentiating between continuous and debug builds. Must be one of:
- cbuild: results from continuous build.
- presubmit: results from oneshot requests.
- culprit: results from culprit finder rerun.
tf_version: String
TensorFlow version this benchmark runs against. This can be either set to full version or just the major version.
Implementations§
Source§impl TestResults
impl TestResults
Sourcepub fn benchmark_type(&self) -> BenchmarkType
pub fn benchmark_type(&self) -> BenchmarkType
Returns the enum value of benchmark_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_benchmark_type(&mut self, value: BenchmarkType)
pub fn set_benchmark_type(&mut self, value: BenchmarkType)
Sets benchmark_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for TestResults
impl Clone for TestResults
Source§fn clone(&self) -> TestResults
fn clone(&self) -> TestResults
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TestResults
impl Debug for TestResults
Source§impl Default for TestResults
impl Default for TestResults
Source§impl Message for TestResults
impl Message for TestResults
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.