ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
bench_quadtree.cpp File Reference

Benchmark tests for QuadTree performance. More...

#include <benchmark/benchmark.h>
#include <zlayout/spatial/quadtree.hpp>
#include <zlayout/geometry/rectangle.hpp>
#include <random>
Include dependency graph for bench_quadtree.cpp:

Go to the source code of this file.

Functions

static void BM_QuadTreeInsert (benchmark::State &state)
 BENCHMARK (BM_QuadTreeInsert) -> Range(8, 8<< 10) ->Complexity()
static void BM_QuadTreeQuery (benchmark::State &state)
 BENCHMARK (BM_QuadTreeQuery) -> Range(8, 8<< 10) ->Complexity()
 BENCHMARK_MAIN ()

Detailed Description

Benchmark tests for QuadTree performance.

Definition in file bench_quadtree.cpp.

Function Documentation

◆ BENCHMARK() [1/2]

BENCHMARK ( BM_QuadTreeInsert ) -> Range(8, 8<< 10) ->Complexity()
Here is the call graph for this function:

◆ BENCHMARK() [2/2]

BENCHMARK ( BM_QuadTreeQuery ) -> Range(8, 8<< 10) ->Complexity()
Here is the call graph for this function:

◆ BENCHMARK_MAIN()

BENCHMARK_MAIN ( )

◆ BM_QuadTreeInsert()

void BM_QuadTreeInsert ( benchmark::State & state)
static

Definition at line 15 of file bench_quadtree.cpp.

Here is the caller graph for this function:

◆ BM_QuadTreeQuery()

void BM_QuadTreeQuery ( benchmark::State & state)
static

Definition at line 37 of file bench_quadtree.cpp.

Here is the caller graph for this function: