@@ -144,73 +144,18 @@ UMF_BENCHMARK_TEMPLATE_DEFINE(multiple_malloc_free_benchmark,
144144UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark,
145145 proxy_pool_fixedprovider)
146146 ->Apply(&default_multiple_alloc_fix_size)
147- ->Apply(&singlethreaded);
147+ ->Apply(&singlethreaded)
148+ // reduce iterations, to match os_provider benchmark
149+ ->Iterations(50000 );
148150
149151UMF_BENCHMARK_TEMPLATE_DEFINE (multiple_malloc_free_benchmark, fixed_provider,
150152 fixed_alloc_size,
151153 provider_allocator<fixed_provider>);
152154UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark, fixed_provider)
153155 ->Apply(&default_multiple_alloc_fix_size)
154- ->Apply(&singlethreaded);
155-
156- UMF_BENCHMARK_TEMPLATE_DEFINE (multiple_malloc_free_benchmark,
157- disjoint_pool_fix_fixedprovider, fixed_alloc_size,
158- pool_allocator<disjoint_pool<fixed_provider>>);
159- UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark,
160- disjoint_pool_fix_fixedprovider)
161- ->Apply(&default_multiple_alloc_fix_size)
162- ->Apply(&multithreaded);
163-
164- UMF_BENCHMARK_TEMPLATE_DEFINE (multiple_malloc_free_benchmark,
165- disjoint_pool_uniform_fixedprovider,
166- uniform_alloc_size,
167- pool_allocator<disjoint_pool<fixed_provider>>);
168- UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark,
169- disjoint_pool_uniform_fixedprovider)
170- ->Apply(&default_multiple_alloc_uniform_size)
171- ->Apply(&multithreaded);
172-
173- #ifdef UMF_POOL_JEMALLOC_ENABLED
174- UMF_BENCHMARK_TEMPLATE_DEFINE (multiple_malloc_free_benchmark,
175- jemalloc_pool_fixedprovider, fixed_alloc_size,
176- pool_allocator<jemalloc_pool<fixed_provider>>);
177- UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark,
178- jemalloc_pool_fixedprovider)
179- ->Apply(&default_multiple_alloc_fix_size)
180- ->Apply(&multithreaded);
181-
182- UMF_BENCHMARK_TEMPLATE_DEFINE (multiple_malloc_free_benchmark,
183- jemalloc_pool_uniform_fixedprovider,
184- uniform_alloc_size,
185- pool_allocator<jemalloc_pool<fixed_provider>>);
186- UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark,
187- jemalloc_pool_uniform_fixedprovider)
188- ->Apply(&default_multiple_alloc_uniform_size)
189- ->Apply(&multithreaded);
190-
191- #endif
192-
193- #ifdef UMF_POOL_SCALABLE_ENABLED
194- UMF_BENCHMARK_TEMPLATE_DEFINE (multiple_malloc_free_benchmark,
195- scalable_pool_fix_fixedprovider, fixed_alloc_size,
196- pool_allocator<scalable_pool<fixed_provider>>);
197-
198- UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark,
199- scalable_pool_fix_fixedprovider)
200- ->Apply(&default_multiple_alloc_fix_size)
201- ->Apply(&multithreaded);
202-
203- UMF_BENCHMARK_TEMPLATE_DEFINE (multiple_malloc_free_benchmark,
204- scalable_pool_uniform_fixedprovider,
205- uniform_alloc_size,
206- pool_allocator<scalable_pool<fixed_provider>>);
207-
208- UMF_BENCHMARK_REGISTER_F (multiple_malloc_free_benchmark,
209- scalable_pool_uniform_fixedprovider)
210- ->Apply(&default_multiple_alloc_uniform_size)
211- ->Apply(&multithreaded);
212-
213- #endif
156+ ->Apply(&singlethreaded)
157+ // reduce iterations, to match os_provider benchmark
158+ ->Iterations(50000 );
214159
215160// BENCHMARK_MAIN();
216161int main (int argc, char **argv) {
0 commit comments