Changeset 2c1830a6


Ignore:
Timestamp:
Oct 30, 2017, 3:47:26 PM (7 years ago)
Author:
tdelisle <tdelisle@…>
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
Message:

Fixed function benchmark for direct routine call

Location:
src/benchmark
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/Makefile.am

    rde737c8 r2c1830a6  
    9797
    9898mutex-function$(EXEEXT):
    99         @BACKEND_CC@ mutex/function.c    -DBENCH_N=5000000000  -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     99        @BACKEND_CC@ mutex/function.c    -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    100100
    101101mutex-pthread_lock$(EXEEXT):
  • src/benchmark/Makefile.in

    rde737c8 r2c1830a6  
    510510
    511511mutex-function$(EXEEXT):
    512         @BACKEND_CC@ mutex/function.c    -DBENCH_N=5000000000  -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     512        @BACKEND_CC@ mutex/function.c    -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    513513
    514514mutex-pthread_lock$(EXEEXT):
  • src/benchmark/mutex/function.c

    rde737c8 r2c1830a6  
    33#include "bench.h"
    44
    5 void __attribute__((noinline)) call() {}
     5void __attribute__((noinline)) do_call() {
     6        asm volatile ("");
     7}
    68
    79int main(int argc, char* argv[]) {
    810        BENCH(
    911                for (size_t i = 0; i < n; i++) {
    10                         call();
     12                        do_call();
    1113                },
    1214                result
Note: See TracChangeset for help on using the changeset viewer.