lichao
2021-05-13 db322f33ba13592f2492317e3f1a070454c97059
utest/speed_test.cpp
@@ -92,9 +92,9 @@
      }
   };
   int nwriters[] = {1, 10, 100};
   int nwriters[] = {1, 10, 100, 1000};
   int nreaders[] = {2};
   const int64_t total_msg = 1000 * 100;
   const int64_t total_msg = 1000 * 1000;
   auto Test = [&](auto &www, auto &rrr, bool isfork) {
      for (auto nreader : nreaders) {
@@ -127,12 +127,13 @@
   // typedef ThreadManager Manager;
   // const bool isfork = IsSameType<Manager, ProcessManager>::value;
   {
   if (0) {
      ThreadManager tw, tr;
      printf("---------------- Testing thread io:  -------------------------------------------------------\n");
      Test(tw, tr, false);
   }
   {
   if (1) {
      ProcessManager pw, pr;
      printf("================ Testing process io: =======================================================\n");
      Test(pw, pr, true);