SHARE
TWEET

Untitled

a guest Oct 13th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main() {
  2.     {
  3.         LOG_DURATION("main test"); // main test: 0 ms
  4.         TestRunner tr;
  5.         RUN_TEST(tr, TestComparison);
  6.         RUN_TEST(tr, TestSorting);
  7.     }
  8.     {
  9.         LOG_DURATION("Insert in vector") // Insert in vector: 1132 ms
  10.         vector<int> v;
  11.         for (int i = 0; i < 100000; i++) {
  12.             v.insert(v.begin(), i);
  13.         }
  14.     }
  15.     return 0;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top