Ignore:
Timestamp:
Jan 19, 2020, 4:16:27 PM (2 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
Children:
f090750
Parents:
9e63a2b
Message:

update benchmarks for concurrency paper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/ctxswitch/python_cor.py

    r9e63a2b r2316525  
    99        times = int( sys.argv[1] )
    1010
    11 def GreatSuspender():
     11def C():
    1212        while True:
    1313                yield
    1414
    15 s = GreatSuspender()
     15c = C()
    1616
    1717start = time.time_ns()
    1818for i in range( 10000000 ):
    19         next( s )  # resume
     19        next( c )  # resume
    2020end = time.time_ns()
    2121print( (end - start) / times )
Note: See TracChangeset for help on using the changeset viewer.