Replace dummy benchmark with sizeof(oio_handle)
This commit is contained in:
parent
70236f2075
commit
5591ed9d74
2
Makefile
2
Makefile
@ -57,7 +57,7 @@ ev/config.h:
|
||||
test: test/run-tests
|
||||
test/run-tests
|
||||
|
||||
benchmark: test/run-benchmarks
|
||||
bench: test/run-benchmarks
|
||||
test/run-benchmarks
|
||||
|
||||
clean:
|
||||
|
||||
@ -19,12 +19,14 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
BENCHMARK_DECLARE (dummy)
|
||||
BENCHMARK_DECLARE (size_handle)
|
||||
BENCHMARK_DECLARE (size_req)
|
||||
BENCHMARK_DECLARE (ping_pongs)
|
||||
HELPER_DECLARE (echo_server)
|
||||
|
||||
TASK_LIST_START
|
||||
BENCHMARK_ENTRY (dummy)
|
||||
BENCHMARK_ENTRY (size_handle)
|
||||
BENCHMARK_ENTRY (size_req)
|
||||
|
||||
BENCHMARK_ENTRY (ping_pongs)
|
||||
BENCHMARK_HELPER (ping_pongs, echo_server)
|
||||
|
||||
@ -20,9 +20,15 @@
|
||||
*/
|
||||
|
||||
#include "task.h"
|
||||
#include "../oio.h"
|
||||
|
||||
|
||||
BENCHMARK_IMPL(dummy) {
|
||||
LOG("23487 foos/bar\n");
|
||||
BENCHMARK_IMPL(size_handle) {
|
||||
LOGF("%lu oio_handle\n", sizeof(oio_handle));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
BENCHMARK_IMPL(size_req) {
|
||||
LOGF("%lu oio_req\n", sizeof(oio_req));
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user