Changeset 5434d04 for src/benchmark/mutex
- Timestamp:
- Oct 30, 2017, 6:24:31 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- e1e8408, fa477f7
- Parents:
- 2ba0bc7 (diff), 8a48f4b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/benchmark/mutex/function.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/mutex/function.c
r2ba0bc7 r5434d04 3 3 #include "bench.h" 4 4 5 void __attribute__((noinline)) call() {} 5 void __attribute__((noinline)) do_call() { 6 asm volatile (""); 7 } 6 8 7 9 int main(int argc, char* argv[]) { 8 10 BENCH( 9 11 for (size_t i = 0; i < n; i++) { 10 call();12 do_call(); 11 13 }, 12 14 result
Note:
See TracChangeset
for help on using the changeset viewer.