Skip to content

Commit 2ab635e

Browse files
committed
Improve: Bold benchmark names in CLI
1 parent 0bba772 commit 2ab635e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"NOMINMAX",
115115
"NOTIMPLEMENTED",
116116
"npos",
117+
"nullary",
117118
"numpy",
118119
"octdigits",
119120
"octogram",
@@ -152,6 +153,8 @@
152153
"ssize",
153154
"startswith",
154155
"STL",
156+
"StringWa.rs",
157+
"STRINGWARS",
155158
"stringzilla",
156159
"stringzilla_bare",
157160
"Strs",
@@ -308,6 +311,7 @@
308311
"xstring": "cpp",
309312
"xtr1common": "cpp",
310313
"xtree": "cpp",
311-
"xutility": "cpp"
314+
"xutility": "cpp",
315+
"regex": "cpp"
312316
}
313317
}

scripts/bench.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ struct bench_result_t {
519519
template <typename... baselines_types_>
520520
bench_result_t const &log(baselines_types_ const &...bases) const {
521521
if (skipped) return *this;
522-
std::printf("Benchmarking `%s`:\n", name.c_str());
522+
std::printf("\n"); // Let's add some spacing between separate benchmarks
523+
std::printf("Benchmarking \033[1m`%s`\033[0m:\n", name.c_str());
523524

524525
// Print the number of errors, if any
525526
if (errors) std::printf("> Errors: %zu in %zu calls\n", errors, stress_calls);

0 commit comments

Comments
 (0)