/*
- * 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.
#include <random>
#include <memory>
-#include "folly/Benchmark.h"
-#include "folly/experimental/Bits.h"
+#include <folly/Benchmark.h>
+#include <folly/experimental/Bits.h>
std::random_device rd;
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);
}
}
#endif
int main(int argc, char *argv[]) {
- google::ParseCommandLineFlags(&argc, &argv, true);
+ gflags::ParseCommandLineFlags(&argc, &argv, true);
folly::runBenchmarks();
return sum.load();
}