- Timestamp:
- Oct 30, 2017, 3:47:26 PM (7 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:
- bb7e3d4
- Parents:
- de737c8
- Location:
- src/benchmark
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/Makefile.am
rde737c8 r2c1830a6 97 97 98 98 mutex-function$(EXEEXT): 99 @BACKEND_CC@ mutex/function.c -DBENCH_N=500000000 0-I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}99 @BACKEND_CC@ mutex/function.c -DBENCH_N=500000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 100 100 101 101 mutex-pthread_lock$(EXEEXT): -
src/benchmark/Makefile.in
rde737c8 r2c1830a6 510 510 511 511 mutex-function$(EXEEXT): 512 @BACKEND_CC@ mutex/function.c -DBENCH_N=500000000 0-I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}512 @BACKEND_CC@ mutex/function.c -DBENCH_N=500000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags} 513 513 514 514 mutex-pthread_lock$(EXEEXT): -
src/benchmark/mutex/function.c
rde737c8 r2c1830a6 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.