Refactored vector bench. Better output , more robust benchmarking (cloberring, minimal timing).

This commit is contained in:
Ion Gaztañaga
2026-06-23 00:39:59 +02:00
parent c774d39b79
commit 2a726a8264
7 changed files with 543 additions and 347 deletions
+4 -3
View File
@@ -19,10 +19,11 @@
#include "bench_vector_common.hpp"
template<class IntType, class Operation>
void run_containers(unsigned numit, unsigned numele, bool bp)
void run_containers(runner<IntType, Operation>& r)
{
vector_test_template< std::vector<IntType, std::allocator<IntType> >, Operation >(numit, numele, "std::vector ", bp);
vector_test_template< bc::vector<IntType, std::allocator<IntType> >, Operation >(numit, numele, "vector ", bp);
//First registered container is the baseline (denominator).
r.template add< std::vector<IntType, std::allocator<IntType> > >("std::vector");
r.template add< bc::vector<IntType, std::allocator<IntType> > >("vector");
}
int main()