Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
benchmark
src
statistics.h
Go to the documentation of this file.
1
// Copyright 2016 Ismael Jimenez Martinez. All rights reserved.
2
// Copyright 2017 Roman Lebedev. All rights reserved.
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
16
#ifndef STATISTICS_H_
17
#define STATISTICS_H_
18
19
#include <vector>
20
21
#include "benchmark/benchmark.h"
22
23
namespace
benchmark
{
24
25
// Return a vector containing the mean, median and standard devation information
26
// (and any user-specified info) for the specified list of reports. If 'reports'
27
// contains less than two non-errored runs an empty vector is returned
28
std::vector<BenchmarkReporter::Run>
ComputeStats
(
29
const
std::vector<BenchmarkReporter::Run>& reports);
30
31
double
StatisticsMean
(
const
std::vector<double>&
v
);
32
double
StatisticsMedian
(
const
std::vector<double>&
v
);
33
double
StatisticsStdDev
(
const
std::vector<double>&
v
);
34
double
StatisticsCV
(
const
std::vector<double>&
v
);
35
36
}
// end namespace benchmark
37
38
#endif // STATISTICS_H_
benchmark
Definition:
bm_alarm.cc:55
benchmark::StatisticsStdDev
double StatisticsStdDev(const std::vector< double > &v)
Definition:
statistics.cc:66
setup.v
v
Definition:
third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
benchmark::StatisticsCV
double StatisticsCV(const std::vector< double > &v)
Definition:
statistics.cc:77
benchmark::ComputeStats
std::vector< BenchmarkReporter::Run > ComputeStats(const std::vector< BenchmarkReporter::Run > &reports)
Definition:
statistics.cc:86
benchmark::StatisticsMean
double StatisticsMean(const std::vector< double > &v)
Definition:
statistics.cc:32
benchmark::StatisticsMedian
double StatisticsMedian(const std::vector< double > &v)
Definition:
statistics.cc:37
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:22