Ignore:
Timestamp:
Jan 7, 2020, 3:50:56 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
580c11b
Parents:
846c026
Message:

update existing benchmarks for changes to bench.h, add new benchmarks in new programming languages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/ctxswitch/goroutine.go

    r846c026 rb4107c8  
    33import (
    44    "fmt"
     5    "time"
     6    "flag"
    57    "runtime"
    6     "time"
    78)
    89
     
    2829
    2930func main() {
    30         const NoOfTimes = 10000000
    31         go ContextSwitch( NoOfTimes )           // context switch
     31        times := flag.Int( "times", 10000000, "loop iterations" )
     32        go ContextSwitch( *times )              // context switch
    3233        <- shake
    3334}
     35
     36// Local Variables: //
     37// tab-width: 4 //
     38// End: //
Note: See TracChangeset for help on using the changeset viewer.