bench: print benchmark name in async/async_pummel

This commit is contained in:
Ben Noordhuis 2012-11-15 22:16:08 +01:00
parent 05aac92913
commit a28bc88708
2 changed files with 4 additions and 2 deletions

View File

@ -86,7 +86,8 @@ static int test_async_pummel(int nthreads) {
for (i = 0; i < nthreads; i++)
ASSERT(0 == uv_thread_join(tids + i));
printf("%s callbacks in %.2f seconds (%s/sec)\n",
printf("async_pummel_%d: %s callbacks in %.2f seconds (%s/sec)\n",
nthreads,
fmt(callbacks),
time / 1e9,
fmt(callbacks / (time / 1e9)));

View File

@ -107,7 +107,8 @@ static int test_async(int nthreads) {
ASSERT(ctx->main_seen == (unsigned int) NUM_PINGS);
}
printf("%.2f sec (%s/sec)\n",
printf("async%d: %.2f sec (%s/sec)\n",
nthreads,
time / 1e9,
fmt(NUM_PINGS / (time / 1e9)));