Changeset 6db3e73 for src/benchmark
- Timestamp:
- Feb 23, 2017, 11:22:03 AM (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:
- 6291725
- Parents:
- 9d169f1
- Location:
- src/benchmark
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/Makefile.am
r9d169f1 r6db3e73 24 24 bench : 25 25 @for ccflags in "-debug" "-nodebug"; do \ 26 echo ${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-lrt bench.c;\26 echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\ 27 27 ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\ 28 28 ./a.out ; \ … … 31 31 32 32 ctxswitch-coroutine: 33 ${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-nodebug -lrt -DN=10000000 CorCtxSwitch.c33 ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 CorCtxSwitch.c 34 34 @for number in 1 2 3 4 5 6 7 8 9 10; do \ 35 35 ./a.out ; \ … … 38 38 39 39 ctxswitch-thread: 40 ${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-nodebug -lrt -DN=10000000 ThrdCtxSwitch.c40 ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 ThrdCtxSwitch.c 41 41 @for number in 1 2 3 4 5 6 7 8 9 10; do \ 42 42 ./a.out ; \ … … 45 45 46 46 csv-data: 47 @${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-nodebug -lrt -quiet -DN=10000000 csv-data.c47 @${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=10000000 csv-data.c 48 48 @./a.out 49 49 @rm -f ./a.out -
src/benchmark/Makefile.in
r9d169f1 r6db3e73 471 471 bench : 472 472 @for ccflags in "-debug" "-nodebug"; do \ 473 echo ${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-lrt bench.c;\473 echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\ 474 474 ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\ 475 475 ./a.out ; \ … … 478 478 479 479 ctxswitch-coroutine: 480 ${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-nodebug -lrt -DN=10000000 CorCtxSwitch.c480 ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 CorCtxSwitch.c 481 481 @for number in 1 2 3 4 5 6 7 8 9 10; do \ 482 482 ./a.out ; \ … … 485 485 486 486 ctxswitch-thread: 487 ${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-nodebug -lrt -DN=10000000 ThrdCtxSwitch.c487 ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 ThrdCtxSwitch.c 488 488 @for number in 1 2 3 4 5 6 7 8 9 10; do \ 489 489 ./a.out ; \ … … 492 492 493 493 csv-data: 494 @${CC} ${AM_CFLAGS} ${CFLAGS} $ ${ccflags}-nodebug -lrt -quiet -DN=10000000 csv-data.c494 @${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=10000000 csv-data.c 495 495 @./a.out 496 496 @rm -f ./a.out -
src/benchmark/csv-data.c
r9d169f1 r6db3e73 3 3 #include <threads> 4 4 5 extern "C" { 5 6 #include <unistd.h> // sysconf 6 7 #include <sys/times.h> // times 7 8 #include <time.h> 9 } 8 10 9 11 inline unsigned long long int Time() {
Note: See TracChangeset
for help on using the changeset viewer.