Benchmarks print their own name
This commit is contained in:
parent
1b85c9f211
commit
9f652d4729
@ -19,15 +19,13 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
BENCHMARK_DECLARE (size_handle)
|
||||
BENCHMARK_DECLARE (size_req)
|
||||
BENCHMARK_DECLARE (sizes)
|
||||
BENCHMARK_DECLARE (ping_pongs)
|
||||
BENCHMARK_DECLARE (pump)
|
||||
HELPER_DECLARE (echo_server)
|
||||
|
||||
TASK_LIST_START
|
||||
BENCHMARK_ENTRY (size_handle)
|
||||
BENCHMARK_ENTRY (size_req)
|
||||
BENCHMARK_ENTRY (sizes)
|
||||
|
||||
BENCHMARK_ENTRY (ping_pongs)
|
||||
BENCHMARK_HELPER (ping_pongs, echo_server)
|
||||
|
||||
@ -84,7 +84,7 @@ static void pinger_close_cb(oio_handle_t* handle, int status) {
|
||||
ASSERT(status == 0);
|
||||
|
||||
pinger = (pinger_t*)handle->data;
|
||||
printf("%d pings\n", pinger->pongs);
|
||||
printf("ping_pongs: %d pings\n", pinger->pongs);
|
||||
|
||||
free(pinger);
|
||||
|
||||
|
||||
@ -22,13 +22,9 @@
|
||||
#include "task.h"
|
||||
#include "../oio.h"
|
||||
|
||||
BENCHMARK_IMPL(size_handle) {
|
||||
LOGF("%lu oio_handle_t\n", sizeof(oio_handle_t));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
BENCHMARK_IMPL(size_req) {
|
||||
LOGF("%lu oio_req_t\n", sizeof(oio_req_t));
|
||||
|
||||
BENCHMARK_IMPL(sizes) {
|
||||
LOGF("oio_handle_t: %lu bytes\n", sizeof(oio_handle_t));
|
||||
LOGF("oio_req_t: %lu bytes\n", sizeof(oio_req_t));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -56,4 +56,4 @@ int main(int argc, char **argv) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -152,7 +152,7 @@ finalize:
|
||||
break;
|
||||
|
||||
default:
|
||||
LOGF("%s: ", test->task_name);
|
||||
//LOGF("%s: ", test->task_name);
|
||||
process_copy_output(main_process, fileno(stderr));
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user