bench: print benchmark name in async/async_pummel
This commit is contained in:
parent
05aac92913
commit
a28bc88708
@ -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)));
|
||||
|
||||
@ -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)));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user