Replace dummy benchmark with sizeof(oio_handle)

This commit is contained in:
Ryan Dahl 2011-05-07 19:32:51 -07:00
parent 70236f2075
commit 5591ed9d74
3 changed files with 14 additions and 6 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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;
}