Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ add_library(libc-memory-benchmark
target_include_directories(libc-memory-benchmark
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${LIBC_SOURCE_DIR}
)
target_link_libraries(libc-memory-benchmark
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion libc/benchmarks/LibcBenchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ BenchmarkResult benchmark(const BenchmarkOptions &Options,
// Measuring this Batch.
const auto StartTime = Clock.now();
for (const auto Parameter : Batch) {
const auto Production = foo(Parameter);
auto Production = foo(Parameter);
benchmark::DoNotOptimize(Production);
}
const auto EndTime = Clock.now();
Expand Down
2 changes: 0 additions & 2 deletions libc/benchmarks/MemorySizeDistributions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,9 @@ ArrayRef<MemorySizeDistribution> getMemcmpSizeDistributions() {
MemorySizeDistribution
getDistributionOrDie(ArrayRef<MemorySizeDistribution> Distributions,
StringRef Name) {
size_t Index = 0;
for (const auto &MSD : Distributions) {
if (MSD.Name == Name)
return MSD;
++Index;
}
std::string Message;
raw_string_ostream Stream(Message);
Expand Down
Loading