forked from cory/tildefriends
libuv 1.45.0, #include cleanup, probably something else.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4308 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
7
deps/libuv/test/benchmark-async-pummel.c
vendored
7
deps/libuv/test/benchmark-async-pummel.c
vendored
@ -62,6 +62,7 @@ static void pummel(void* arg) {
|
||||
|
||||
|
||||
static int test_async_pummel(int nthreads) {
|
||||
char fmtbuf[2][32];
|
||||
uv_thread_t* tids;
|
||||
uv_async_t handle;
|
||||
uint64_t time;
|
||||
@ -88,13 +89,13 @@ static int test_async_pummel(int nthreads) {
|
||||
|
||||
printf("async_pummel_%d: %s callbacks in %.2f seconds (%s/sec)\n",
|
||||
nthreads,
|
||||
fmt(callbacks),
|
||||
fmt(&fmtbuf[0], callbacks),
|
||||
time / 1e9,
|
||||
fmt(callbacks / (time / 1e9)));
|
||||
fmt(&fmtbuf[1], callbacks / (time / 1e9)));
|
||||
|
||||
free(tids);
|
||||
|
||||
MAKE_VALGRIND_HAPPY();
|
||||
MAKE_VALGRIND_HAPPY(uv_default_loop());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user