Using `folly/Benchmark.h` is very simple. Here's an example:
``` Cpp
- #include "folly/Benchmark.h"
- #include "folly/Foreach.h"
+ #include <folly/Benchmark.h>
+ #include <folly/Foreach.h>
#include <vector>
using namespace std;
using namespace folly;
implicitly `unsigned`. Consider a slightly reworked example:
``` Cpp
- #include "folly/Benchmark.h"
- #include "folly/Foreach.h"
+ #include <folly/Benchmark.h>
+ #include <folly/Foreach.h>
#include <vector>
using namespace std;
using namespace folly;
compares with it:
``` Cpp
- #include "folly/Benchmark.h"
- #include "folly/Foreach.h"
+ #include <folly/Benchmark.h>
+ #include <folly/Foreach.h>
#include <vector>
using namespace std;
using namespace folly;
### Suspending a benchmark
***
-Sometimes benchmarking code must to some preparation work that is
+Sometimes benchmarking code must do some preparation work that is
physically inside the benchmark function, but should not take part to
its time budget. To temporarily suspend the benchmark, use the
pseudo-statement `BENCHMARK_SUSPEND` as follows: