Codemod: use #include angle brackets in folly and thrift
[folly.git] / folly / io / test / NetworkBenchmark.cpp
index ccba6f3e6fca1760a0609eb65cc3326714b4836d..45077342c53ef2b9a8f529caf12e476e6b1680a5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2014 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * 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());