}
BENCHMARK(rwPrivateCursorBenchmark, iters) {
- while (--iters) {
+ while (iters--) {
runBenchmark<RWPrivateCursor>();
}
}
BENCHMARK(rwUnshareCursorBenchmark, iters) {
- while (--iters) {
+ while (iters--) {
runBenchmark<RWUnshareCursor>();
}
}
BENCHMARK(cursorBenchmark, iters) {
- while (--iters) {
+ while (iters--) {
Cursor c(iobuf_read_benchmark.get());
for(int i = 0; i < benchmark_size ; i++) {
c.read<uint8_t>();
BENCHMARK(skipBenchmark, iters) {
uint8_t buf;
- while (--iters) {
+ while (iters--) {
Cursor c(iobuf_read_benchmark.get());
for(int i = 0; i < benchmark_size ; i++) {
c.peek();
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 --) {
}
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 --) {
}
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());