Add benchmark documentation, run timing. ptl
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Tue, 13 Nov 2012 23:53:08 -0800
branchptl
changeset 9766 b40b0eff3599
parent 9765 10939fed92c8
child 9767 bcde2492d42b
Add benchmark documentation, run timing.
src/lte/model/lte-radio-bearer-tag.cc
src/lte/model/lte-radio-bearer-tag.h
src/lte/model/lte-rlc-um.cc
src/lte/model/lte-rlc-um.h
utils/bench-packets.cc
--- a/utils/bench-packets.cc	Tue Nov 13 23:52:34 2012 -0800
+++ b/utils/bench-packets.cc	Tue Nov 13 23:53:08 2012 -0800
@@ -252,7 +252,10 @@
   double ps = n;
   ps *= 1000;
   ps /= deltaMs;
-  std::cout << name<<"=" << ps << " packets/s" << std::endl;
+  std::cout << ps << " packets/s"
+            << " (" << deltaMs << " ms elapsed)\t"
+            << name
+            << std::endl;
 }
 
 int main (int argc, char *argv[])
@@ -280,11 +283,12 @@
       exit (1);
     }
   std::cout << "Running bench-packets with n=" << n << std::endl;
+  std::cout << "All tests begin by adding UDP and IPv4 headers." << std::endl;
 
-  runBench (&benchA, n, "a");
-  runBench (&benchB, n, "b");
-  runBench (&benchC, n, "c");
-  runBench (&benchD, n, "d");
+  runBench (&benchA, n, "Copy packet, remove headers");
+  runBench (&benchB, n, "Just add headers");
+  runBench (&benchC, n, "Remove by func call");
+  runBench (&benchD, n, "Intermixed add/remove headers and tags");
 
   return 0;
 }