DGtal
1.4.beta
|
#include <iostream>
#include <string>
#include <sstream>
#include <benchmark/benchmark.h>
Go to the source code of this file.
Macros | |
#define | BENCHMARK_NOINLINE |
Functions | |
int BENCHMARK_NOINLINE | Factorial (uint32_t n) |
static void | BM_StringCreation (benchmark::State &state) |
BENCHMARK (BM_StringCreation) | |
static void | BM_StringCopy (benchmark::State &state) |
BENCHMARK (BM_StringCopy) | |
static void | BM_Factorial (benchmark::State &state) |
BENCHMARK (BM_Factorial) | |
double | CalculatePi (int depth) |
static void | BM_CalculatePiRange (benchmark::State &state) |
BENCHMARK_RANGE (BM_CalculatePiRange, 1, 256 *256) | |
static void | BM_CalculatePi (benchmark::State &state) |
BENCHMARK (BM_CalculatePi) -> Threads(8) | |
static void | BM_LongTest (benchmark::State &state) |
BENCHMARK (BM_LongTest) -> Range(1<< 4, 1<< 6) | |
int | main (int argc, char *argv[]) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class Benchmark.
This file is part of the DGtal library.
Definition in file testBenchmark.cpp.
#define BENCHMARK_NOINLINE |
Definition at line 47 of file testBenchmark.cpp.
BENCHMARK | ( | BM_CalculatePi | ) | -> Threads(8) |
BENCHMARK | ( | BM_Factorial | ) |
BENCHMARK | ( | BM_LongTest | ) | -> Range(1<< 4, 1<< 6) |
BENCHMARK | ( | BM_StringCopy | ) |
BENCHMARK | ( | BM_StringCreation | ) |
Referenced by TEST_CASE().
BENCHMARK_RANGE | ( | BM_CalculatePiRange | , |
1 | , | ||
256 * | 256 | ||
) |
|
static |
|
static |
|
static |
|
static |
Definition at line 117 of file testBenchmark.cpp.
|
static |
Definition at line 65 of file testBenchmark.cpp.
|
static |
Definition at line 55 of file testBenchmark.cpp.
double CalculatePi | ( | int | depth | ) |
Definition at line 85 of file testBenchmark.cpp.
Referenced by BM_CalculatePi(), and BM_CalculatePiRange().
int BENCHMARK_NOINLINE Factorial | ( | uint32_t | n | ) |
Definition at line 51 of file testBenchmark.cpp.
Referenced by BM_Factorial().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 133 of file testBenchmark.cpp.