Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion benchmark/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ UMF_BENCHMARK_TEMPLATE_DEFINE(multiple_malloc_free_benchmark,
disjoint_pool_uniform, uniform_alloc_size,
pool_allocator<disjoint_pool<os_provider>>);
UMF_BENCHMARK_REGISTER_F(multiple_malloc_free_benchmark, disjoint_pool_uniform)
->Apply(&default_multiple_alloc_uniform_size);
->Apply(&default_multiple_alloc_uniform_size)
->Apply(&multithreaded);

#ifdef UMF_POOL_JEMALLOC_ENABLED
UMF_BENCHMARK_TEMPLATE_DEFINE(multiple_malloc_free_benchmark, jemalloc_pool_fix,
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark_umf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ struct disjoint_pool : public pool_interface<Provider> {
return {nullptr, [](void *) {}};
}

ret = umfDisjointPoolParamsSetMinBucketSize(raw_params, 4096);
ret = umfDisjointPoolParamsSetMinBucketSize(raw_params, 8);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we are using more then 1 bucket in benchmarks

if (ret != UMF_RESULT_SUCCESS) {
state.SkipWithError("Failed to set min bucket size");
return {nullptr, [](void *) {}};
Expand Down
Loading