Skip to content

Commit 2b0a094

Browse files
committed
Put fastest, allocation only, tests first to avoid allocation pollution for subsequent tests
1 parent c1fa6ed commit 2b0a094

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

experimental/bench_hub.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -476,19 +476,18 @@ int main(int argc,char* argv[])
476476
using den = nest<element>;
477477

478478
table t;
479-
480-
t.push_back(benchmark(
481-
"creat, ins, erase, ins",
482-
create<num>{}, create<den>{}));
483-
t.push_back(benchmark(
484-
"creat, ins, erase, ins, destroy",
485-
create_and_destroy<num>{}, create_and_destroy<den>{}));
486479
t.push_back(benchmark(
487480
"for_each",
488481
for_each<num>{}, for_each<den>{}));
489482
t.push_back(benchmark(
490483
"visit_all",
491484
visit_all<num>{}, visit_all<den>{}));
485+
t.push_back(benchmark(
486+
"creat, ins, erase, ins",
487+
create<num>{}, create<den>{}));
488+
t.push_back(benchmark(
489+
"creat, ins, erase, ins, destroy",
490+
create_and_destroy<num>{}, create_and_destroy<den>{}));
492491
t.push_back(benchmark(
493492
"sort",
494493
sort<num>{}, sort<den>{}));

0 commit comments

Comments
 (0)