Repository: lucy-clownfish Updated Branches: refs/heads/master 7161001d9 -> ebec05a3e
Make simulated inline more realistic. Disable optimization using `volatile`. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/ebec05a3 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/ebec05a3 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/ebec05a3 Branch: refs/heads/master Commit: ebec05a3e7afc1aef74a40a868f2425a3cb7d65f Parents: 8362e4b Author: Marvin Humphrey <[email protected]> Authored: Mon Sep 15 18:41:31 2014 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Mon Sep 15 19:08:45 2014 -0700 ---------------------------------------------------------------------- devel/benchmarks/method_dispatch/exe.c | 2 +- devel/benchmarks/method_dispatch/oo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ebec05a3/devel/benchmarks/method_dispatch/exe.c ---------------------------------------------------------------------- diff --git a/devel/benchmarks/method_dispatch/exe.c b/devel/benchmarks/method_dispatch/exe.c index 9774387..708124a 100644 --- a/devel/benchmarks/method_dispatch/exe.c +++ b/devel/benchmarks/method_dispatch/exe.c @@ -189,6 +189,7 @@ main(int argc, char **argv) { bench(loop_with_wrapper, "wrapper loop"); bench(loop_with_fixed_offset_wrapper, "fixed offset wrapper loop"); bench(loop_with_interface, "interface loop"); + bench(loop_with_simulated_inline, "simulated inline"); #ifdef HAS_ALIAS bench(loop_with_thunk, "thunk loop"); bench(loop_with_thunk_ptr, "thunk ptr loop"); @@ -198,7 +199,6 @@ main(int argc, char **argv) { bench(call_with_thunk, "thunk"); bench(call_with_thunk_ptr, "thunk ptr"); #endif - bench(loop_with_simulated_inline, "simulated inline"); return 0; } http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ebec05a3/devel/benchmarks/method_dispatch/oo.h ---------------------------------------------------------------------- diff --git a/devel/benchmarks/method_dispatch/oo.h b/devel/benchmarks/method_dispatch/oo.h index 61ebbc3..f12a45a 100644 --- a/devel/benchmarks/method_dispatch/oo.h +++ b/devel/benchmarks/method_dispatch/oo.h @@ -26,7 +26,7 @@ typedef struct class_t interface_t; typedef struct obj_t { size_t refcount; class_t *klass; - uint64_t value; + volatile uint64_t value; } obj_t; typedef void (*method_t)(obj_t *obj);
