Refactor stats to use the same type for indexes
[folly.git] / folly / test / ThreadLocalBenchmark.cpp
index dfaec0b0b387f1c4e388ee497249b5952876f0e6..824b73ea108c39144a79f8e4dbcfe132c7cd806b 100644 (file)
 
 #include <folly/ThreadLocal.h>
 
-#include <dlfcn.h>
 #include <sys/types.h>
-#include <sys/wait.h>
-#include <unistd.h>
 
 #include <array>
 #include <atomic>
 #include <unordered_map>
 
 #include <boost/thread/tss.hpp>
-#include <gflags/gflags.h>
 #include <glog/logging.h>
 
 #include <folly/Benchmark.h>
 #include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/GFlags.h>
+#include <folly/portability/Unistd.h>
 
 using namespace folly;
 
@@ -68,7 +66,7 @@ DEFINE_int32(numThreads, 8, "Number simultaneous threads for benchmarks.");
     for (int i = 0; i < FLAGS_numThreads; ++i) {         \
       threads.push_back(std::thread([&]() {              \
         var.reset(new int(0));                           \
-        for (int i = 0; i < itersPerThread; ++i) {       \
+        for (int j = 0; j < itersPerThread; ++j) {       \
           ++(*var.get());                                \
         }                                                \
       }));                                               \