fall back to .debug_info scan in fatal signal handler
[folly.git] / folly / experimental / test / BitsBenchmark.cpp
index 454fddbd38533b2d3c86868758472bc7e4df972e..f4782745f29d62a5cfebc1a51ed801331f6846d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@ void benchmarkSet(size_t n, T) {
     CHECK_LE(folly::findLastSet(max), size);
     CHECK_LE(folly::findLastSet(-min), size);
     std::uniform_int_distribution<T> dis(min, max);
-    for (int i = 0; i < k; ++i) {
+    for (size_t i = 0; i < k; ++i) {
       values[i] = dis(gen);
     }
   }
@@ -111,7 +111,7 @@ benchmarkGet(i64)                                 85.78%     8.53ns  117.16M
 #endif
 
 int main(int argc, char *argv[]) {
-  google::ParseCommandLineFlags(&argc, &argv, true);
+  gflags::ParseCommandLineFlags(&argc, &argv, true);
   folly::runBenchmarks();
   return sum.load();
 }