Skip to content

Instantly share code, notes, and snippets.

@danikin
Created March 6, 2016 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danikin/b5dffc58a47fcc4d3d7b to your computer and use it in GitHub Desktop.
Save danikin/b5dffc58a47fcc4d3d7b to your computer and use it in GitHub Desktop.
// 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