4#include <boost/timer.hpp>
5#include <boost/lexical_cast.hpp>
16 std::size_t niters = argc < 2 ? 1000 : boost::lexical_cast<std::size_t>(
argv[1]);
21 for (
int n = 0;
n < niters; ++
n)
23 v.insert(
v.begin() +
v.size()/2,
n);
26 std::cout <<
"vector fill: " <<
t.elapsed() << std::endl;
28 std::multiset<int*,compare>
m;
29 for (
int n = 0;
n < niters; ++
n)
33 std::cout <<
"map fill 1: " <<
t.elapsed() << std::endl;
34 for (
int n = 0;
n < niters; ++
n)
38 std::cout <<
"map fill 2: " <<
t.elapsed() << std::endl;
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
bool operator()(int *x, int *y)