[][src]Struct tensorflow_proto::tensorflow::BenchmarkEntry

pub struct BenchmarkEntry {
    pub name: String,
    pub iters: i64,
    pub cpu_time: f64,
    pub wall_time: f64,
    pub throughput: f64,
    pub extras: HashMap<String, EntryValue>,
    pub metrics: Vec<MetricEntry>,
}

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.

Fields

name: String

The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)

iters: i64

If a benchmark, how many iterations it was run for

cpu_time: f64

Total cpu time used for all iterations (in seconds)

wall_time: f64

Total wall time used for all iterations (in seconds)

throughput: f64

Throughput (in MB/s)

extras: HashMap<String, EntryValue>

Generic map from result key to value.

metrics: Vec<MetricEntry>

Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed

Trait Implementations

impl Clone for BenchmarkEntry[src]

impl Debug for BenchmarkEntry[src]

impl Default for BenchmarkEntry[src]

impl Message for BenchmarkEntry[src]

impl PartialEq<BenchmarkEntry> for BenchmarkEntry[src]

impl StructuralPartialEq for BenchmarkEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.