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