diff options
author | Trevor Guidry <trevor.guidry@mongodb.com> | 2022-09-16 19:00:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-20 18:00:27 +0000 |
commit | bc998019c79c83db140317c3e59761fdd12a8c5f (patch) | |
tree | 2d6ce6aafdf155f07fd403c9fff7454c86a8f09f /src/mongo/db/pipeline/expression_bm.cpp | |
parent | 03bf5f2dff26f3d5c3ca4687c565c3c764bcc013 (diff) | |
download | mongo-bc998019c79c83db140317c3e59761fdd12a8c5f.tar.gz |
SERVER-69581 add performance-for-range-copy check to clang-tidy
Diffstat (limited to 'src/mongo/db/pipeline/expression_bm.cpp')
-rw-r--r-- | src/mongo/db/pipeline/expression_bm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/expression_bm.cpp b/src/mongo/db/pipeline/expression_bm.cpp index 6978d426c42..0d2a2e798c3 100644 --- a/src/mongo/db/pipeline/expression_bm.cpp +++ b/src/mongo/db/pipeline/expression_bm.cpp @@ -57,7 +57,7 @@ void benchmarkExpression(BSONObj expressionSpec, // Run the test. for (auto keepRunning : state) { - for (auto document : documents) { + for (const auto& document : documents) { benchmark::DoNotOptimize(expression->evaluate(document, variables)); } benchmark::ClobberMemory(); |