Changeset 50abab9


Ignore:
Timestamp:
Nov 24, 2017, 8:56:54 PM (6 years ago)
Author:
Thierry Delisle <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:
f5478c8
Parents:
fdd3786
Message:

Added benchmarks for java and go

Location:
src/benchmark
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/Makefile.am

    rfdd3786 r50abab9  
    9494        ctxswitch-cfa_thread.run        \
    9595        ctxswitch-upp_coroutine.run     \
    96         ctxswitch-upp_thread.run
     96        ctxswitch-upp_thread.run        \
     97        ctxswitch-goroutine.run         \
     98        ctxswitch-java_thread.run
    9799
    98100ctxswitch-cfa_coroutine$(EXEEXT):
     
    110112ctxswitch-pthread$(EXEEXT):
    111113        @@BACKEND_CC@ ctxswitch/pthreads.c  -DBENCH_N=50000000  -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     114
     115ctxswitch-goroutine$(EXEEXT):
     116        @go build -o a.out ctxswitch/goroutine.go
     117
     118ctxswitch-java_thread$(EXEEXT):
     119        @javac ctxswitch/JavaThread.java
     120        @echo "#!/bin/sh" > a.out
     121        @echo "cd ctxswitch && java JavaThread" >> a.out
     122        @chmod a+x a.out
    112123
    113124## =========================================================================================================
     
    183194        creation-cfa_thread.run                 \
    184195        creation-upp_coroutine.run              \
    185         creation-upp_thread.run
     196        creation-upp_thread.run                 \
     197        creation-goroutine.run                  \
     198        creation-java_thread.run
    186199
    187200creation-cfa_coroutine$(EXEEXT):
     
    202215creation-pthread$(EXEEXT):
    203216        @@BACKEND_CC@ creation/pthreads.c  -DBENCH_N=250000     -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     217
     218creation-goroutine$(EXEEXT):
     219        @go build -o a.out creation/goroutine.go
     220
     221creation-java_thread$(EXEEXT):
     222        @javac creation/JavaThread.java
     223        @echo "#!/bin/sh" > a.out
     224        @echo "cd creation && java JavaThread" >> a.out
     225        @chmod a+x a.out
    204226
    205227## =========================================================================================================
  • src/benchmark/Makefile.in

    rfdd3786 r50abab9  
    507507        ctxswitch-cfa_thread.run        \
    508508        ctxswitch-upp_coroutine.run     \
    509         ctxswitch-upp_thread.run
     509        ctxswitch-upp_thread.run        \
     510        ctxswitch-goroutine.run         \
     511        ctxswitch-java_thread.run
    510512
    511513ctxswitch-cfa_coroutine$(EXEEXT):
     
    523525ctxswitch-pthread$(EXEEXT):
    524526        @@BACKEND_CC@ ctxswitch/pthreads.c  -DBENCH_N=50000000  -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     527
     528ctxswitch-goroutine$(EXEEXT):
     529        @go build -o a.out ctxswitch/goroutine.go
     530
     531ctxswitch-java_thread$(EXEEXT):
     532        @javac ctxswitch/JavaThread.java
     533        @echo "#!/bin/sh" > a.out
     534        @echo "cd ctxswitch && java JavaThread" >> a.out
     535        @chmod a+x a.out
    525536
    526537mutex$(EXEEXT) :\
     
    592603        creation-cfa_thread.run                 \
    593604        creation-upp_coroutine.run              \
    594         creation-upp_thread.run
     605        creation-upp_thread.run                 \
     606        creation-goroutine.run                  \
     607        creation-java_thread.run
    595608
    596609creation-cfa_coroutine$(EXEEXT):
     
    611624creation-pthread$(EXEEXT):
    612625        @@BACKEND_CC@ creation/pthreads.c  -DBENCH_N=250000     -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     626
     627creation-goroutine$(EXEEXT):
     628        @go build -o a.out creation/goroutine.go
     629
     630creation-java_thread$(EXEEXT):
     631        @javac creation/JavaThread.java
     632        @echo "#!/bin/sh" > a.out
     633        @echo "cd creation && java JavaThread" >> a.out
     634        @chmod a+x a.out
    613635
    614636compile$(EXEEXT) :\
Note: See TracChangeset for help on using the changeset viewer.