mirror of
https://github.com/boostorg/container.git
synced 2026-07-08 03:50:51 +02:00
Refactored vector bench. Better output , more robust benchmarking (cloberring, minimal timing).
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user