Ignore:
Timestamp:
Jun 23, 2019, 3:53:46 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d4e68a6
Parents:
49dee5e
Message:

update benchmarks and add benchmarks for qthreads

Location:
benchmark/ctxswitch
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • benchmark/ctxswitch/cfa_cor.cfa

    r49dee5e rdc33b5b  
    1 #include <stdio.h>
    21#include <kernel.hfa>
    32#include <thread.hfa>
     
    2120
    2221        BENCH(
    23                 for (size_t i = 0; i < n; i++) {
     22                for ( i; n ) {
    2423                        resume( s );
    2524                },
     
    2726        )
    2827
    29         printf("%llu\n", result);
     28        printf("%g\n", result);
    3029}
  • benchmark/ctxswitch/cfa_cor_then.cfa

    r49dee5e rdc33b5b  
    1 #include <stdio.h>
    21#include <kernel.hfa>
    32#include <thread.hfa>
     
    2322
    2423        BENCH(
    25                 for (size_t i = 0; i < n; i++) {
     24                for ( i; n ) {
    2625                        resume( s );
    2726                },
     
    2928        )
    3029
    31         printf("%llu\n", result);
     30        printf("%g\n", result);
    3231}
  • benchmark/ctxswitch/cfa_thrd.cfa

    r49dee5e rdc33b5b  
    1 #include <stdio.h>
    21#include <thread.hfa>
    32
     
    65int main(int argc, char* argv[]) {
    76        BENCH(
    8                 for (size_t i = 0; i < n; i++) {
     7                for ( i; n ) {
    98                        yield();
    109                },
     
    1211        )
    1312
    14         printf("%llu\n", result);
     13        printf("%g\n", result);
    1514}
  • benchmark/ctxswitch/cfa_thrd2.cfa

    r49dee5e rdc33b5b  
    1 #include <stdio.h>
    21#include <thread.hfa>
    32
     
    1716        Fibre f1;
    1817        BENCH(
    19                 for (size_t i = 0; i < n; i++) {
     18                for ( i; n ) {
    2019                        yield();
    2120                },
     
    2322        )
    2423
    25         printf("%llu\n", result);
     24        printf("%g\n", result);
    2625        done = true;
    2726        return 0;
  • benchmark/ctxswitch/kos_fibre.cpp

    r49dee5e rdc33b5b  
    1010                result
    1111        )
    12         printf("%llu\n", result);
     12        printf("%g\n", result);
    1313        return 0;
    1414}
  • benchmark/ctxswitch/kos_fibre2.cpp

    r49dee5e rdc33b5b  
    1919                result
    2020        )
    21         printf("%llu\n", result);
     21        printf("%g\n", result);
    2222        done = true;
    2323        Fibre::yield();
  • benchmark/ctxswitch/pthreads.c

    r49dee5e rdc33b5b  
    1414        )
    1515
    16         printf("%llu\n", result);
     16        printf("%g\n", result);
    1717}
  • benchmark/ctxswitch/upp_cor.cc

    r49dee5e rdc33b5b  
    3030        )
    3131
    32         printf("%llu\n", result);
     32        printf("%g\n", result);
    3333}
  • benchmark/ctxswitch/upp_thrd.cc

    r49dee5e rdc33b5b  
    1111        )
    1212
    13         printf("%llu\n", result);
     13        printf("%g\n", result);
    1414}
Note: See TracChangeset for help on using the changeset viewer.