tests/performance: print result in unique line

Previously, the result lines are not unique, for example

  Running test simple-construction
  Millions of constructed objects per second: 27.629
  Running test simple-construction1
  Millions of constructed objects per second: 151.879
  ...

That is undesirable, because we might want to parse the test results
with a script, and that's easier when the line is unique.

Change to:

  Running test simple-construction
  simple-construction: Millions of constructed objects per second: 27.629
  Running test simple-construction1
  simple-construction1: Millions of constructed objects per second: 151.879
  ...
This commit is contained in:
Thomas Haller 2024-03-05 10:46:21 +01:00 committed by Philip Withnall
parent 58e9e41757
commit 65a59bde57

View File

@ -159,6 +159,7 @@ run_test (PerformanceTest *test)
}
/* Print the results */
g_print ("%s: ", test->name);
test->print_result (test, data, min_elapsed);
/* Tear down */