Ignore:
Timestamp:
May 5, 2017, 10:56:12 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
bd951f7
Parents:
8cb6fcd
Message:

Monitor benchmarks now compare 1 and 2 monitors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/Monitor.c

    r8cb6fcd re0b8ccd5  
    99mon_t mon1, mon2;
    1010
     11void dummy( mon_t * mutex a ) {}
    1112void dummy( mon_t * mutex a, mon_t * mutex b ) {}
    12 
    13 
    1413
    1514int main() {
    1615        long long int StartTime, EndTime;
     16
     17        StartTime = Time();
     18        for( int i = 0; i < N; i++ ) {
     19                dummy( &mon1 );
     20        }
     21        EndTime = Time();
     22
     23        sout | ( EndTime - StartTime ) / N;
    1724
    1825        StartTime = Time();
Note: See TracChangeset for help on using the changeset viewer.