edits
[c11concurrency-benchmarks.git] / gdax-orderbook-hpp / demo / demo.cpp
index bcef9f2284603f5f4c4808b7cf30b65224434dc1..9ab247bad7061b0fd8b18987c37d497aafed0593 100644 (file)
@@ -6,8 +6,8 @@
 
 #include "gdax-orderbook.hpp"
 
-#define FACTOR 125
-#define HIST_SIZE 60
+#define FACTOR 500
+#define HIST_SIZE 40
 
 std::atomic<bool> stop;
 
@@ -111,9 +111,9 @@ int main(int argc, char* argv[]) {
     for ( int i=0 ; i < HIST_SIZE ; ++i )
     {
         std::cout
-            << std::right << std::setw(5) << std::setfill(' ') << i*FACTOR / 1000.0
+            << std::right << std::setw(4) << std::setfill(' ') << i*FACTOR / 1000.0
             << "-"
-            << std::right << std::setw(5) << std::setfill(' ') << (i+1)*FACTOR / 1000.0 - 0.001
+            << std::right << std::setw(4) << std::setfill(' ') << (i+1)*FACTOR / 1000.0 - 0.01
             << " s: ";
         std::cout << histogram[i] << "\n";
 /*