Ignore:
Timestamp:
Oct 26, 2017, 4:22:17 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
6a5be52
Parents:
f54a0ab
Message:

added behcnmarks for signal and waitfor

Location:
src/benchmark/mutex
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/mutex/cfa1.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    7 
    86monitor M {};
    9 
    10 void __attribute__((noinline)) call( M & mutex m ) {
    11         counter++;
    12 }
     7void __attribute__((noinline)) call( M & mutex m ) {}
    138
    149int main(int argc, char* argv[]) {
  • src/benchmark/mutex/cfa2.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    7 
    86monitor M {};
    9 
    10 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2 ) {
    11         counter++;
    12 }
     7void __attribute__((noinline)) call( M & mutex m1, M & mutex m2 ) {}
    138
    149int main(int argc, char* argv[]) {
  • src/benchmark/mutex/cfa4.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    76
    87monitor M {};
    9 
    10 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2, M & mutex m3, M & mutex m4 ) {
    11         counter++;
    12 }
     8void __attribute__((noinline)) call( M & mutex m1, M & mutex m2, M & mutex m3, M & mutex m4 ) {}
    139
    1410int main(int argc, char* argv[]) {
  • src/benchmark/mutex/function.c

    rf54a0ab r9f0b975  
    33#include "bench.h"
    44
    5 volatile unsigned long int counter = 0;
    6 
    7 void __attribute__((noinline)) call() {
    8         counter++;
    9 }
     5void __attribute__((noinline)) call() {}
    106
    117int main(int argc, char* argv[]) {
  • src/benchmark/mutex/pthreads.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    7 
    86pthread_mutex_t mutex;
    97
    108void __attribute__((noinline)) call() {
    119         pthread_mutex_lock  (&mutex);
    12          counter++;
    1310         pthread_mutex_unlock(&mutex);
    1411}
  • src/benchmark/mutex/upp.cc

    rf54a0ab r9f0b975  
    33#include "bench.h"
    44
    5 volatile unsigned long int counter = 0;
    6 
    75_Monitor MyMonitor {
    86public:
    9         void __attribute__((noinline)) call() {
    10                 counter++;
    11         }
     7        void __attribute__((noinline)) call() {}
    128};
    139
Note: See TracChangeset for help on using the changeset viewer.