Refactor ix86_expand_vecop_qihi2.
[gcc.git] / libstdc++-v3 / testsuite / 23_containers / vector / profile / vector.cc
blob7806fb24bf35cd93054a6b3a1b3e9abc854c7566
1 // Test vector: performance difference 25% (0.444s vs 0.539s)
2 // Advice: set tmp as 10000
4 // { dg-options "-DITERATIONS=20" { target simulator } }
6 #ifndef ITERATIONS
7 #define ITERATIONS 2000
8 #endif
10 #include <vector>
12 using std::vector;
14 int main()
16 vector <int> tmp;
18 for (int j=0; j<ITERATIONS; j++)
19 // Insert more than default item
20 for (int i=0; i<10000; i++) {
21 tmp.push_back(i);