memtest.cpp
Go to the documentation of this file.
00001 #include <megatree/node.h>
00002 #include <megatree/long_id.h>
00003 #include <megatree/cache.h>
00004 #include <vector>
00005 #include <list>
00006 #include <boost/shared_ptr.hpp>
00007 #include <tr1/unordered_map>
00008 
00009 const int SIZE=10000000;
00010 //const int SIZE=1000000;
00011 
00012 using namespace megatree;
00013 
00014 int main()
00015 {
00016   printf("sizeof(Node) = %zu\n", sizeof(Node));
00017 
00018   std::vector<Node> v;
00019   v.resize(SIZE);
00020 
00021   /*
00022   Cache<IdType, Node> c;
00023   for (size_t i = 0; i < SIZE; ++i) {
00024     c.push_back(i, boost::shared_ptr<Node>(new Node));
00025   }
00026   */
00027   
00028 
00029   while(true)
00030   {
00031     sleep(1);
00032   }
00033 
00034   return 0;
00035 }


megatree_cpp
Author(s): Stuart Glaser
autogenerated on Thu Nov 28 2013 11:30:34