Lines Matching refs:benchmark
27 void BM_InlinedVectorFill(benchmark::State& state) { in BM_InlinedVectorFill()
36 benchmark::DoNotOptimize(v); in BM_InlinedVectorFill()
41 void BM_InlinedVectorFillRange(benchmark::State& state) { in BM_InlinedVectorFillRange()
47 benchmark::DoNotOptimize(src); in BM_InlinedVectorFillRange()
49 benchmark::DoNotOptimize(v); in BM_InlinedVectorFillRange()
54 void BM_StdVectorFill(benchmark::State& state) { in BM_StdVectorFill()
63 benchmark::DoNotOptimize(v); in BM_StdVectorFill()
90 void BM_InlinedVectorFillString(benchmark::State& state) { in BM_InlinedVectorFillString()
106 void BM_StdVectorFillString(benchmark::State& state) { in BM_StdVectorFillString()
129 void BM_InlinedVectorAssignments(benchmark::State& state) { in BM_InlinedVectorAssignments()
138 benchmark::DoNotOptimize(dst); in BM_InlinedVectorAssignments()
139 benchmark::DoNotOptimize(src); in BM_InlinedVectorAssignments()
151 void BM_CreateFromContainer(benchmark::State& state) { in BM_CreateFromContainer()
154 benchmark::DoNotOptimize(src); in BM_CreateFromContainer()
156 benchmark::DoNotOptimize(dst); in BM_CreateFromContainer()
219 void BM_SwapElements(benchmark::State& state) { in BM_SwapElements()
226 benchmark::DoNotOptimize(a); in BM_SwapElements()
227 benchmark::DoNotOptimize(b); in BM_SwapElements()
242 void BM_Sizeof(benchmark::State& state) { in BM_Sizeof()
270 void BM_InlinedVectorIndexInlined(benchmark::State& state) { in BM_InlinedVectorIndexInlined()
273 benchmark::DoNotOptimize(v); in BM_InlinedVectorIndexInlined()
274 benchmark::DoNotOptimize(v[4]); in BM_InlinedVectorIndexInlined()
279 void BM_InlinedVectorIndexExternal(benchmark::State& state) { in BM_InlinedVectorIndexExternal()
282 benchmark::DoNotOptimize(v); in BM_InlinedVectorIndexExternal()
283 benchmark::DoNotOptimize(v[4]); in BM_InlinedVectorIndexExternal()
288 void BM_StdVectorIndex(benchmark::State& state) { in BM_StdVectorIndex()
291 benchmark::DoNotOptimize(v); in BM_StdVectorIndex()
292 benchmark::DoNotOptimize(v[4]); in BM_StdVectorIndex()
297 void BM_InlinedVectorDataInlined(benchmark::State& state) { in BM_InlinedVectorDataInlined()
300 benchmark::DoNotOptimize(v); in BM_InlinedVectorDataInlined()
301 benchmark::DoNotOptimize(v.data()); in BM_InlinedVectorDataInlined()
306 void BM_InlinedVectorDataExternal(benchmark::State& state) { in BM_InlinedVectorDataExternal()
309 benchmark::DoNotOptimize(v); in BM_InlinedVectorDataExternal()
310 benchmark::DoNotOptimize(v.data()); in BM_InlinedVectorDataExternal()
316 void BM_StdVectorData(benchmark::State& state) { in BM_StdVectorData()
319 benchmark::DoNotOptimize(v); in BM_StdVectorData()
320 benchmark::DoNotOptimize(v.data()); in BM_StdVectorData()
326 void BM_InlinedVectorSizeInlined(benchmark::State& state) { in BM_InlinedVectorSizeInlined()
329 benchmark::DoNotOptimize(v); in BM_InlinedVectorSizeInlined()
330 benchmark::DoNotOptimize(v.size()); in BM_InlinedVectorSizeInlined()
335 void BM_InlinedVectorSizeExternal(benchmark::State& state) { in BM_InlinedVectorSizeExternal()
338 benchmark::DoNotOptimize(v); in BM_InlinedVectorSizeExternal()
339 benchmark::DoNotOptimize(v.size()); in BM_InlinedVectorSizeExternal()
344 void BM_StdVectorSize(benchmark::State& state) { in BM_StdVectorSize()
347 benchmark::DoNotOptimize(v); in BM_StdVectorSize()
348 benchmark::DoNotOptimize(v.size()); in BM_StdVectorSize()
353 void BM_InlinedVectorEmptyInlined(benchmark::State& state) { in BM_InlinedVectorEmptyInlined()
356 benchmark::DoNotOptimize(v); in BM_InlinedVectorEmptyInlined()
357 benchmark::DoNotOptimize(v.empty()); in BM_InlinedVectorEmptyInlined()
362 void BM_InlinedVectorEmptyExternal(benchmark::State& state) { in BM_InlinedVectorEmptyExternal()
365 benchmark::DoNotOptimize(v); in BM_InlinedVectorEmptyExternal()
366 benchmark::DoNotOptimize(v.empty()); in BM_InlinedVectorEmptyExternal()
371 void BM_StdVectorEmpty(benchmark::State& state) { in BM_StdVectorEmpty()
374 benchmark::DoNotOptimize(v); in BM_StdVectorEmpty()
375 benchmark::DoNotOptimize(v.empty()); in BM_StdVectorEmpty()
405 benchmark::DoNotOptimize(*this); in NontrivialType()
410 benchmark::DoNotOptimize(*this); in NontrivialType()
416 benchmark::DoNotOptimize(*this); in operator =()
421 benchmark::DoNotOptimize(*this); in ~NontrivialType()
429 void BatchedBenchmark(benchmark::State& state, PrepareVecFn prepare_vec, in BatchedBenchmark()
439 benchmark::DoNotOptimize(vector_batch); in BatchedBenchmark()
450 void BM_ConstructFromSize(benchmark::State& state) { in BM_ConstructFromSize()
458 benchmark::DoNotOptimize(size); in BM_ConstructFromSize()
466 void BM_ConstructFromSizeRef(benchmark::State& state) { in BM_ConstructFromSizeRef()
475 benchmark::DoNotOptimize(size); in BM_ConstructFromSizeRef()
476 benchmark::DoNotOptimize(ref); in BM_ConstructFromSizeRef()
484 void BM_ConstructFromRange(benchmark::State& state) { in BM_ConstructFromRange()
492 benchmark::DoNotOptimize(arr); in BM_ConstructFromRange()
500 void BM_ConstructFromCopy(benchmark::State& state) { in BM_ConstructFromCopy()
509 benchmark::DoNotOptimize(other_vec); in BM_ConstructFromCopy()
517 void BM_ConstructFromMove(benchmark::State& state) { in BM_ConstructFromMove()
530 benchmark::DoNotOptimize(vector_batch[i]); in BM_ConstructFromMove()
538 void BM_AssignSizeRef(benchmark::State& state) { in BM_AssignSizeRef()
546 benchmark::DoNotOptimize(size); in BM_AssignSizeRef()
547 benchmark::DoNotOptimize(ref); in BM_AssignSizeRef()
555 void BM_AssignRange(benchmark::State& state) { in BM_AssignRange()
562 benchmark::DoNotOptimize(arr); in BM_AssignRange()
570 void BM_AssignFromCopy(benchmark::State& state) { in BM_AssignFromCopy()
577 benchmark::DoNotOptimize(other_vec); in BM_AssignFromCopy()
585 void BM_AssignFromMove(benchmark::State& state) { in BM_AssignFromMove()
598 benchmark::DoNotOptimize(vector_batch[i]); in BM_AssignFromMove()
606 void BM_ResizeSize(benchmark::State& state) { in BM_ResizeSize()
621 void BM_ResizeSizeRef(benchmark::State& state) { in BM_ResizeSizeRef()
632 benchmark::DoNotOptimize(t); in BM_ResizeSizeRef()
640 void BM_InsertSizeRef(benchmark::State& state) { in BM_InsertSizeRef()
651 benchmark::DoNotOptimize(t); in BM_InsertSizeRef()
660 void BM_InsertRange(benchmark::State& state) { in BM_InsertRange()
671 benchmark::DoNotOptimize(other_vec); in BM_InsertRange()
680 void BM_EmplaceBack(benchmark::State& state) { in BM_EmplaceBack()
695 void BM_PopBack(benchmark::State& state) { in BM_PopBack()
710 void BM_EraseOne(benchmark::State& state) { in BM_EraseOne()
728 void BM_EraseRange(benchmark::State& state) { in BM_EraseRange()
746 void BM_Clear(benchmark::State& state) { in BM_Clear()
756 void BM_Reserve(benchmark::State& state) { in BM_Reserve()
771 void BM_ShrinkToFit(benchmark::State& state) { in BM_ShrinkToFit()
786 void BM_Swap(benchmark::State& state) { in BM_Swap()
800 benchmark::DoNotOptimize(vector_batch[i]); in BM_Swap()