Skip to content

Commit f36d893

Browse files
authored
Merge pull request #1112 from lplewa/benchmark_improvements
Benchmark improvements
2 parents 36ccc9d + 21628ae commit f36d893

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

benchmark/benchmark.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ UMF_BENCHMARK_TEMPLATE_DEFINE(multiple_malloc_free_benchmark,
8989
disjoint_pool_uniform, uniform_alloc_size,
9090
pool_allocator<disjoint_pool<os_provider>>);
9191
UMF_BENCHMARK_REGISTER_F(multiple_malloc_free_benchmark, disjoint_pool_uniform)
92-
->Apply(&default_multiple_alloc_uniform_size);
92+
->Apply(&default_multiple_alloc_uniform_size)
93+
->Apply(&multithreaded);
9394

9495
#ifdef UMF_POOL_JEMALLOC_ENABLED
9596
UMF_BENCHMARK_TEMPLATE_DEFINE(multiple_malloc_free_benchmark, jemalloc_pool_fix,

benchmark/benchmark_umf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ struct disjoint_pool : public pool_interface<Provider> {
199199
return {nullptr, [](void *) {}};
200200
}
201201

202-
ret = umfDisjointPoolParamsSetMinBucketSize(raw_params, 4096);
202+
ret = umfDisjointPoolParamsSetMinBucketSize(raw_params, 8);
203203
if (ret != UMF_RESULT_SUCCESS) {
204204
state.SkipWithError("Failed to set min bucket size");
205205
return {nullptr, [](void *) {}};

0 commit comments

Comments
 (0)