DGtal 1.4.0
|
#include <iostream>
#include <benchmark/benchmark.h>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/helpers/StdDefs.h"
#include <map>
#include <string>
Go to the source code of this file.
Typedefs | |
typedef DGtal::ImageContainerBySTLVector< Z2i::Domain, DGtal::int32_t > | ImageVector2 |
typedef DGtal::ImageContainerBySTLMap< Z2i::Domain, DGtal::int32_t > | ImageMap2 |
typedef DGtal::experimental::ImageContainerByHashTree< Z2i::Domain, DGtal::int32_t > | ImageHash2 |
Functions | |
template<typename Q > | |
static void | BM_Constructor (benchmark::State &state) |
BENCHMARK_TEMPLATE (BM_Constructor, ImageVector2) -> Range(1<< 3, 1<< 10) | |
BENCHMARK_TEMPLATE (BM_Constructor, ImageMap2) -> Range(1<< 3, 1<< 16) | |
BENCHMARK_TEMPLATE (BM_Constructor, ImageHash2) -> Range(1<< 3, 1<< 16) | |
template<typename Point > | |
std::set< Point > | ConstructRandomSet (unsigned int size, unsigned int maxWidth) |
template<typename Q > | |
static void | BM_SetValue (benchmark::State &state) |
BENCHMARK_TEMPLATE (BM_SetValue, ImageVector2) -> Range(1<< 3, 1<< 10) | |
BENCHMARK_TEMPLATE (BM_SetValue, ImageMap2) -> Range(1<< 3, 1<< 16) | |
BENCHMARK_TEMPLATE (BM_SetValue, ImageHash2) -> Range(1<< 3, 1<< 10) | |
template<typename Q > | |
static void | BM_RangeScan (benchmark::State &state) |
BENCHMARK_TEMPLATE (BM_RangeScan, ImageVector2) -> Range(1<< 3, 1<< 10) | |
BENCHMARK_TEMPLATE (BM_RangeScan, ImageMap2) -> Range(1<< 3, 1<< 10) | |
template<typename Q > | |
static void | BM_DomainScan (benchmark::State &state) |
BENCHMARK_TEMPLATE (BM_DomainScan, ImageVector2) -> Range(1<< 3, 1<< 10) | |
BENCHMARK_TEMPLATE (BM_DomainScan, ImageMap2) -> Range(1<< 3, 1<< 10) | |
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 ImageContainerBenchmark.
This file is part of the DGtal library.
Definition in file benchmarkImageContainer.cpp.
Definition at line 52 of file benchmarkImageContainer.cpp.
Definition at line 51 of file benchmarkImageContainer.cpp.
Definition at line 50 of file benchmarkImageContainer.cpp.
BENCHMARK_TEMPLATE | ( | BM_Constructor | , |
ImageHash2 | ) -> Range(1<< 3, 1<< 16) |
BENCHMARK_TEMPLATE | ( | BM_Constructor | , |
ImageMap2 | ) -> Range(1<< 3, 1<< 16) |
BENCHMARK_TEMPLATE | ( | BM_Constructor | , |
ImageVector2 | ) -> Range(1<< 3, 1<< 10) |
BENCHMARK_TEMPLATE | ( | BM_DomainScan | , |
ImageMap2 | ) -> Range(1<< 3, 1<< 10) |
BENCHMARK_TEMPLATE | ( | BM_DomainScan | , |
ImageVector2 | ) -> Range(1<< 3, 1<< 10) |
BENCHMARK_TEMPLATE | ( | BM_RangeScan | , |
ImageMap2 | ) -> Range(1<< 3, 1<< 10) |
BENCHMARK_TEMPLATE | ( | BM_RangeScan | , |
ImageVector2 | ) -> Range(1<< 3, 1<< 10) |
BENCHMARK_TEMPLATE | ( | BM_SetValue | , |
ImageHash2 | ) -> Range(1<< 3, 1<< 10) |
BENCHMARK_TEMPLATE | ( | BM_SetValue | , |
ImageMap2 | ) -> Range(1<< 3, 1<< 16) |
BENCHMARK_TEMPLATE | ( | BM_SetValue | , |
ImageVector2 | ) -> Range(1<< 3, 1<< 10) |
|
static |
Definition at line 55 of file benchmarkImageContainer.cpp.
|
static |
Definition at line 140 of file benchmarkImageContainer.cpp.
References ConstructRandomSet().
|
static |
Definition at line 114 of file benchmarkImageContainer.cpp.
References ConstructRandomSet().
|
static |
Definition at line 85 of file benchmarkImageContainer.cpp.
References ConstructRandomSet().
std::set< Point > ConstructRandomSet | ( | unsigned int | size, |
unsigned int | maxWidth ) |
Definition at line 71 of file benchmarkImageContainer.cpp.
Referenced by BM_DomainScan(), BM_RangeScan(), and BM_SetValue().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 171 of file benchmarkImageContainer.cpp.