Skip to content

Commit a29e01a

Browse files
committed
rename logger
1 parent 6379a84 commit a29e01a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

libc/benchmarks/gpu/BenchmarkLogger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ template BenchmarkLogger &BenchmarkLogger::operator<< <UInt<320>>(UInt<320>);
9191

9292
// TODO: Add floating point formatting once it's supported by StringStream.
9393

94-
BenchmarkLogger blog;
94+
BenchmarkLogger log;
9595

9696
} // namespace benchmarks
9797
} // namespace LIBC_NAMESPACE

libc/benchmarks/gpu/BenchmarkLogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct BenchmarkLogger {
1919
};
2020

2121
// A global TestLogger instance to be used in tests.
22-
extern BenchmarkLogger blog;
22+
extern BenchmarkLogger log;
2323

2424
} // namespace benchmarks
2525
} // namespace LIBC_NAMESPACE

libc/benchmarks/gpu/LibcGpuBenchmark.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ class Benchmark {
9898
auto result = benchmark(options, func);
9999
constexpr auto GREEN = "\033[32m";
100100
constexpr auto RESET = "\033[0m";
101-
blog << GREEN << "[ RUN ] " << RESET << name << '\n';
102-
blog << GREEN << "[ OK ] " << RESET << name << ": " << result.cycles
103-
<< " cycles, " << result.min << " min, " << result.max << " max, "
104-
<< result.total_iterations << " iterations, " << result.total_time
105-
<< " ns, " << static_cast<long>(result.standard_deviation)
106-
<< " stddev\n";
101+
log << GREEN << "[ RUN ] " << RESET << name << '\n';
102+
log << GREEN << "[ OK ] " << RESET << name << ": " << result.cycles
103+
<< " cycles, " << result.min << " min, " << result.max << " max, "
104+
<< result.total_iterations << " iterations, " << result.total_time
105+
<< " ns, " << static_cast<long>(result.standard_deviation)
106+
<< " stddev\n";
107107
}
108108
const cpp::string_view get_name() const { return name; }
109109
};

0 commit comments

Comments
 (0)