Created
March 6, 2016 20:05
-
-
Save danikin/b5dffc58a47fcc4d3d7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sudo yum install gcc-c++ | |
// gcc -std=gnu++0x -DNDEBUG -O3 just_stl.cpp -lstdc++ -o just_stl | |
// time ./just_stl | |
#include <unordered_map> | |
int main() | |
{ | |
std::unordered_map<int, int> m; | |
for (int i = 0;i < 10000000;++i) | |
m[i*i] = i; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment