Initial arena benchmarks
This commit is contained in:
@@ -29,6 +29,13 @@ FetchContent_Declare(
|
||||
)
|
||||
FetchContent_MakeAvailable(doctest)
|
||||
|
||||
FetchContent_Declare(
|
||||
nanobench
|
||||
GIT_REPOSITORY https://github.com/martinus/nanobench.git
|
||||
GIT_TAG a5a50c2b33eea2ff1fcb355cacdface43eb42b25 # v4.3.11
|
||||
)
|
||||
FetchContent_MakeAvailable(nanobench)
|
||||
|
||||
include_directories(src)
|
||||
|
||||
set(SOURCES src/main.cpp src/config.cpp)
|
||||
@@ -42,4 +49,9 @@ add_executable(test_arena_allocator tests/test_arena_allocator.cpp)
|
||||
target_link_libraries(test_arena_allocator doctest::doctest)
|
||||
target_include_directories(test_arena_allocator PRIVATE src)
|
||||
|
||||
add_executable(bench_arena_allocator benchmarks/bench_arena_allocator.cpp)
|
||||
target_link_libraries(bench_arena_allocator nanobench)
|
||||
target_include_directories(bench_arena_allocator PRIVATE src)
|
||||
|
||||
add_test(NAME arena_allocator_tests COMMAND test_arena_allocator)
|
||||
add_test(NAME arena_allocator_benchmarks COMMAND bench_arena_allocator)
|
||||
|
||||
Reference in New Issue
Block a user