ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
|
Benchmark tests for geometry operations performance. More...
#include <benchmark/benchmark.h>
#include <zlayout/geometry/polygon.hpp>
#include <zlayout/geometry/point.hpp>
#include <zlayout/geometry/rectangle.hpp>
#include <random>
#include <vector>
#include <cmath>
Go to the source code of this file.
Macros | |
#define | _USE_MATH_DEFINES |
#define | M_PI 3.14159265358979323846 |
Functions | |
static void | BM_PolygonArea (benchmark::State &state) |
BENCHMARK (BM_PolygonArea) -> Range(8, 8<< 8) ->Complexity() | |
static void | BM_PointInPolygon (benchmark::State &state) |
BENCHMARK (BM_PointInPolygon) | |
static void | BM_SharpAngleDetection (benchmark::State &state) |
BENCHMARK (BM_SharpAngleDetection) -> Range(8, 8<< 6) ->Complexity() | |
static void | BM_PolygonDistance (benchmark::State &state) |
BENCHMARK (BM_PolygonDistance) | |
BENCHMARK_MAIN () |
Benchmark tests for geometry operations performance.
Definition in file bench_geometry.cpp.
#define _USE_MATH_DEFINES |
Definition at line 6 of file bench_geometry.cpp.
#define M_PI 3.14159265358979323846 |
Definition at line 17 of file bench_geometry.cpp.
BENCHMARK | ( | BM_PointInPolygon | ) |
BENCHMARK | ( | BM_PolygonArea | ) | -> Range(8, 8<< 8) ->Complexity() |
BENCHMARK | ( | BM_PolygonDistance | ) |
BENCHMARK | ( | BM_SharpAngleDetection | ) | -> Range(8, 8<< 6) ->Complexity() |
BENCHMARK_MAIN | ( | ) |
|
static |
Definition at line 42 of file bench_geometry.cpp.
|
static |
Definition at line 23 of file bench_geometry.cpp.
|
static |
Definition at line 86 of file bench_geometry.cpp.
|
static |
Definition at line 64 of file bench_geometry.cpp.