Codemod: use #include angle brackets in folly and thrift
[folly.git] / folly / io / test / NetworkBenchmark.cpp
index de31881861a9627d352fde641209877995d4b895..45077342c53ef2b9a8f529caf12e476e6b1680a5 100644 (file)
  * limitations under the License.
  */
 
-#include "folly/io/IOBuf.h"
+#include <folly/io/IOBuf.h>
 
 #include <gflags/gflags.h>
-#include "folly/Benchmark.h"
-#include "folly/io/Cursor.h"
+#include <folly/Benchmark.h>
+#include <folly/io/Cursor.h>
 
 #include <vector>
 
@@ -31,7 +31,7 @@ size_t buf_size = 0;
 size_t num_bufs = 0;
 
 BENCHMARK(reserveBenchmark, iters) {
-  while (--iters) {
+  while (iters--) {
     unique_ptr<IOBuf> iobuf1(IOBuf::create(buf_size));
     iobuf1->append(buf_size);
     for (size_t bufs = num_bufs; bufs > 1; bufs --) {
@@ -42,7 +42,7 @@ BENCHMARK(reserveBenchmark, iters) {
 }
 
 BENCHMARK(chainBenchmark, iters) {
-  while (--iters) {
+  while (iters--) {
     unique_ptr<IOBuf> iobuf1(IOBuf::create(buf_size));
     iobuf1->append(buf_size);
     for (size_t bufs = num_bufs; bufs > 1; bufs --) {
@@ -75,7 +75,7 @@ inline void poolPutIOBuf(unique_ptr<IOBuf>&& buf) {
 }
 
 BENCHMARK(poolBenchmark, iters) {
-  while (--iters) {
+  while (iters--) {
     unique_ptr<IOBuf> head = std::move(poolGetIOBuf());
     for (size_t bufs = num_bufs; bufs > 1; bufs --) {
       unique_ptr<IOBuf> iobufNext = std::move(poolGetIOBuf());