Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Replace dummy benchmark with sizeof(oio_handle)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 8, 2011
1 parent 70236f2 commit 5591ed9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions test/benchmark-list.h
Expand Up @@ -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)
Expand Down
10 changes: 8 additions & 2 deletions test/benchmark-dummy.c → test/benchmark-sizes.c
Expand Up @@ -20,9 +20,15 @@
*/

#include "task.h"
#include "../oio.h"

BENCHMARK_IMPL(size_handle) {
LOGF("%lu oio_handle\n", sizeof(oio_handle));
return 0;
}


BENCHMARK_IMPL(dummy) {
LOG("23487 foos/bar\n");
BENCHMARK_IMPL(size_req) {
LOGF("%lu oio_req\n", sizeof(oio_req));
return 0;
}

0 comments on commit 5591ed9

Please sign in to comment.