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: test/run-tests
|
||||||
test/run-tests
|
test/run-tests
|
||||||
|
|
||||||
benchmark: test/run-benchmarks
|
bench: test/run-benchmarks
|
||||||
test/run-benchmarks
|
test/run-benchmarks
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
@ -19,12 +19,14 @@
|
|||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
BENCHMARK_DECLARE (dummy)
|
BENCHMARK_DECLARE (size_handle)
|
||||||
|
BENCHMARK_DECLARE (size_req)
|
||||||
BENCHMARK_DECLARE (ping_pongs)
|
BENCHMARK_DECLARE (ping_pongs)
|
||||||
HELPER_DECLARE (echo_server)
|
HELPER_DECLARE (echo_server)
|
||||||
|
|
||||||
TASK_LIST_START
|
TASK_LIST_START
|
||||||
BENCHMARK_ENTRY (dummy)
|
BENCHMARK_ENTRY (size_handle)
|
||||||
|
BENCHMARK_ENTRY (size_req)
|
||||||
|
|
||||||
BENCHMARK_ENTRY (ping_pongs)
|
BENCHMARK_ENTRY (ping_pongs)
|
||||||
BENCHMARK_HELPER (ping_pongs, echo_server)
|
BENCHMARK_HELPER (ping_pongs, echo_server)
|
||||||
|
|||||||
@ -20,9 +20,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
#include "../oio.h"
|
||||||
|
|
||||||
|
BENCHMARK_IMPL(size_handle) {
|
||||||
BENCHMARK_IMPL(dummy) {
|
LOGF("%lu oio_handle\n", sizeof(oio_handle));
|
||||||
LOG("23487 foos/bar\n");
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BENCHMARK_IMPL(size_req) {
|
||||||
|
LOGF("%lu oio_req\n", sizeof(oio_req));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user