benchmark error : abort called
Closed this issue · 0 comments
GJeannin0 commented
J'aimerai savoir pourquoi j'ai l'erreur "abort called" en lançant ce benchmark.
const int fromRange = 2;
const int toRange = 64;
static void BM_Push(benchmark::State& state){
const size_t ALLOCATOR_HEADER_SIZE = 16;
const size_t SIZE = 1024;
void* start = malloc(SIZE + ALLOCATOR_HEADER_SIZE);
neko::FreeListAllocator allocator(SIZE + ALLOCATOR_HEADER_SIZE, start);
neko::DynArray<int> dyn(allocator);
for (int i = 0; i < state.range(0); i++){
dyn.Push(i);
}
}
BENCHMARK(BM_Push)->Range(fromRange, toRange);