reSIProcate/rutil  9694
Functions
testDataPerformance.cxx File Reference
#include "rutil/DataStream.hxx"
#include "rutil/Random.hxx"
Include dependency graph for testDataPerformance.cxx:

Go to the source code of this file.

Functions

int main ()

Function Documentation

int main ( void  )

Definition at line 7 of file testDataPerformance.cxx.

References resip::Random::getRandomHex(), and resip::Data::Preallocate.

{
   Data data = Random::getRandomHex(8);
   for (int j=0; j<100; j++)
   {
      Data output(1000000, Data::Preallocate);
      DataStream strm(output);
      
      for (int i=0; i<100000; i++)
      {
         strm << data;
         strm << 'c';
         strm << "chars";
      }
   }
   return 0;
}

Here is the call graph for this function: