Changeset 2c3562d


Ignore:
Timestamp:
Oct 2, 2020, 11:30:19 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0d72d45
Parents:
dd53f75
Message:

Fized argument passing for benchmarks which don't produce an ELF executable

Location:
benchmark
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • benchmark/Makefile.am

    rdd53f75 r2c3562d  
    291291ctxswitch-python_coroutine$(EXEEXT):
    292292        $(BENCH_V_PY)echo "#!/bin/sh" > a.out
    293         echo "python3.7 $(srcdir)/ctxswitch/python_cor.py" >> a.out
     293        echo "python3 $(srcdir)/ctxswitch/python_cor.py \"$$""@\"" >> a.out
    294294        chmod a+x a.out
    295295
    296296ctxswitch-nodejs_coroutine$(EXEEXT):
    297297        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
    298         echo "nodejs $(srcdir)/ctxswitch/node_cor.js" >> a.out
     298        echo "nodejs $(srcdir)/ctxswitch/node_cor.js \"$$""@\"" >> a.out
    299299        chmod a+x a.out
    300300
    301301ctxswitch-nodejs_await$(EXEEXT):
    302302        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
    303         echo "nodejs $(srcdir)/ctxswitch/node_await.js" >> a.out
     303        echo "nodejs $(srcdir)/ctxswitch/node_await.js \"$$""@\"" >> a.out
    304304        chmod a+x a.out
    305305
     
    313313        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java
    314314        echo "#!/bin/sh" > a.out
    315         echo "java JavaThread" >> a.out
     315        echo "java JavaThread \"$$""@\"" >> a.out
    316316        chmod a+x a.out
    317317
     
    355355        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java
    356356        echo "#!/bin/sh" > a.out
    357         echo "java JavaThread" >> a.out
     357        echo "java JavaThread \"$$""@\"" >> a.out
    358358        chmod a+x a.out
    359359
     
    387387        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java
    388388        echo "#!/bin/sh" > a.out
    389         echo "java JavaThread" >> a.out
     389        echo "java JavaThread \"$$""@\"" >> a.out
    390390        chmod a+x a.out
    391391
     
    454454creation-python_coroutine$(EXEEXT):
    455455        $(BENCH_V_PY)echo "#!/bin/sh" > a.out
    456         echo "python3.7 $(srcdir)/creation/python_cor.py" >> a.out
     456        echo "python3 $(srcdir)/creation/python_cor.py \"$$""@\"" >> a.out
    457457        chmod a+x a.out
    458458
    459459creation-nodejs_coroutine$(EXEEXT):
    460460        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
    461         echo "nodejs $(srcdir)/creation/node_cor.js" >> a.out
     461        echo "nodejs $(srcdir)/creation/node_cor.js \"$$""@\"" >> a.out
    462462        chmod a+x a.out
    463463
     
    471471        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java
    472472        echo "#!/bin/sh" > a.out
    473         echo "java JavaThread" >> a.out
     473        echo "java JavaThread \"$$""@\"" >> a.out
    474474        chmod a+x a.out
    475475
  • benchmark/creation/JavaThread.java

    rdd53f75 r2c3562d  
    4747        }
    4848        public static void main(String[] args) throws InterruptedException {
    49                 if ( args.length > 2 ) System.exit( 1 );
    50                 if ( args.length == 2 ) { times = Long.parseLong(args[1]); }
     49                if ( args.length > 1 ) System.exit( 1 );
     50                if ( args.length == 1 ) { times = Long.parseLong(args[0]); }
    5151
    5252                for (int i = Integer.parseInt("5"); --i >= 0 ; ) {
  • benchmark/ctxswitch/JavaThread.java

    rdd53f75 r2c3562d  
    4040        }
    4141        public static void main(String[] args) throws InterruptedException {
    42                 if ( args.length > 2 ) System.exit( 1 );
    43                 if ( args.length == 2 ) { times = Long.parseLong(args[1]); }
     42                if ( args.length > 1 ) System.exit( 1 );
     43                if ( args.length == 1 ) { times = Long.parseLong(args[0]); }
    4444
    4545                for (int i = Integer.parseInt("5"); --i >= 0 ; ) {
  • benchmark/mutex/JavaThread.java

    rdd53f75 r2c3562d  
    4747        }
    4848        public static void main(String[] args) throws InterruptedException {
    49                 if ( args.length > 2 ) System.exit( 1 );
    50                 if ( args.length == 2 ) { times = Long.parseLong(args[1]); }
     49                if ( args.length > 1 ) System.exit( 1 );
     50                if ( args.length == 1 ) { times = Long.parseLong(args[0]); }
    5151
    5252                for (int n = Integer.parseInt("5"); --n >= 0 ; ) {
  • benchmark/schedint/JavaThread.java

    rdd53f75 r2c3562d  
    7575        }
    7676        public static void main(String[] args) throws InterruptedException {
    77                 if ( args.length > 2 ) System.exit( 1 );
    78                 if ( args.length == 2 ) { times = Long.parseLong(args[1]); }
     77                if ( args.length > 1 ) System.exit( 1 );
     78                if ( args.length == 1 ) { times = Long.parseLong(args[0]); }
    7979
    8080                for (int n = Integer.parseInt("5"); --n >= 0 ; ) {
Note: See TracChangeset for help on using the changeset viewer.