benchmark
1.10.0
Toggle main menu visibility
Loading...
Searching...
No Matches
statistics.h
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/export.h"
22
#include "benchmark/reporter.h"
23
24
namespace
benchmark {
25
26
// Return a vector containing the mean, median and standard deviation
27
// information (and any user-specified info) for the specified list of reports.
28
// If 'reports' contains less than two non-errored runs an empty vector is
29
// returned
30
BENCHMARK_EXPORT
31
std::vector<BenchmarkReporter::Run> ComputeStats(
32
const
std::vector<BenchmarkReporter::Run>& reports);
33
34
BENCHMARK_EXPORT
35
double
StatisticsMean(
const
std::vector<double>& v);
36
BENCHMARK_EXPORT
37
double
StatisticsMedian(
const
std::vector<double>& v);
38
BENCHMARK_EXPORT
39
double
StatisticsStdDev(
const
std::vector<double>& v);
40
BENCHMARK_EXPORT
41
double
StatisticsCV(
const
std::vector<double>& v);
42
43
}
// end namespace benchmark
44
45
#endif
// STATISTICS_H_
src
statistics.h
Generated by
1.18.0