Skip to content

Commit b88b6f8

Browse files
committed
tests: better benchmark output formatting
1 parent 0db0cfa commit b88b6f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/benchmark.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ int main(int argc, char** argv) {
331331
"Avg", "Dev"));
332332
printf("|:-----------|:-------------------------------|:-------|------------:|-------:|\n");
333333
for (const auto& result : results) {
334-
auto model = result.model.substr(std::max(int(result.model.length()) - 30, 0));
334+
auto model = result.model.substr(std::max(int(result.model.length()) - 35, 0));
335+
model = model.substr(0, model.find_last_of('.'));
335336
print(format(
336337
line, "| {: <10} | {: <30} | {: <6} | {:8.1f} ms | {:6.1f} |\n", result.arch, model,
337338
result.backend, result.time.mean.count(), result.time.stdev.count()));

0 commit comments

Comments
 (0)