Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
benchmark_activeobjectmgr.cpp File Reference
#include "catch.h"
#include "server/activeobjectmgr.h"
#include "util/numeric.h"
+ Include dependency graph for benchmark_activeobjectmgr.cpp:

Macros

#define BENCH_INSIDE_RADIUS(_count)
 
#define BENCH_IN_AREA(_count)
 

Functions

template<size_t N>
void benchGetObjectsInsideRadius (Catch::Benchmark::Chronometer &meter)
 
template<size_t N>
void benchGetObjectsInArea (Catch::Benchmark::Chronometer &meter)
 
 TEST_CASE ("ActiveObjectMgr")
 

Macro Definition Documentation

◆ BENCH_IN_AREA

#define BENCH_IN_AREA ( _count)
Value:
BENCHMARK_ADVANCED("in_area_" #_count)(Catch::Benchmark::Chronometer meter) \
void benchGetObjectsInArea(Catch::Benchmark::Chronometer &meter)
Definition benchmark_activeobjectmgr.cpp:73

Referenced by TEST_CASE().

◆ BENCH_INSIDE_RADIUS

#define BENCH_INSIDE_RADIUS ( _count)
Value:
BENCHMARK_ADVANCED("inside_radius_" #_count)(Catch::Benchmark::Chronometer meter) \
void benchGetObjectsInsideRadius(Catch::Benchmark::Chronometer &meter)
Definition benchmark_activeobjectmgr.cpp:51

Referenced by TEST_CASE().

Function Documentation

◆ benchGetObjectsInArea()

template<size_t N>
void benchGetObjectsInArea ( Catch::Benchmark::Chronometer & meter)

References ActiveObjectMgr< T >::clear(), fill(), server::ActiveObjectMgr::getObjectsInArea(), and myrand_range().

+ Here is the call graph for this function:

◆ benchGetObjectsInsideRadius()

template<size_t N>
void benchGetObjectsInsideRadius ( Catch::Benchmark::Chronometer & meter)

References ActiveObjectMgr< T >::clear(), fill(), and server::ActiveObjectMgr::getObjectsInsideRadius().

+ Here is the call graph for this function:

◆ TEST_CASE()

TEST_CASE ( "ActiveObjectMgr" )