Ignore:
Timestamp:
Jan 19, 2020, 4:16:27 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
f090750
Parents:
9e63a2b
Message:

update benchmarks for concurrency paper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/ctxswitch/cfa_cor.cfa

    r9e63a2b r2316525  
    44#include "bench.h"
    55
    6 coroutine GreatSuspender {};
    7 void main( __attribute__((unused)) GreatSuspender & this ) {
    8         while ( true ) {
     6coroutine C {} c;
     7void main( __attribute__((unused)) C & ) {
     8        while () {
    99                suspend();
    1010        }
     
    1212int main( int argc, char * argv[] ) {
    1313        BENCH_START()
    14         GreatSuspender s;
    1514        BENCH(
    16                 for ( i; times ) {
    17                         resume( s );
     15                for ( times ) {
     16                        resume( c );
    1817                },
    1918                result
Note: See TracChangeset for help on using the changeset viewer.