Changeset 18f0b70 for benchmark


Ignore:
Timestamp:
Nov 10, 2020, 12:21:21 AM (5 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0dd9a5e
Parents:
16ba4a6f (diff), 75baaa3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
benchmark
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/cycle.cfa

    r16ba4a6f r18f0b70  
    8484                }
    8585
    86                 printf("Duration (ms)        : %'ld\n", (end - start)`ms);
     86                printf("Duration (ms)        : %'ld\n", (end - start)`dms);
    8787                printf("Number of processors : %'d\n", nprocs);
    8888                printf("Number of threads    : %'d\n", tthreads);
     
    9090                printf("Total Operations(ops): %'15llu\n", global_counter);
    9191                printf("Total blocks         : %'15llu\n", global_blocks);
    92                 printf("Ops per second       : %'18.2lf\n", ((double)global_counter) / (end - start)`s);
    93                 printf("ns per ops           : %'18.2lf\n", ((double)(end - start)`ns) / global_counter);
     92                printf("Ops per second       : %'18.2lf\n", ((double)global_counter) / (end - start)`ds);
     93                printf("ns per ops           : %'18.2lf\n", (end - start)`dns / global_counter);
    9494                printf("Ops per threads      : %'15llu\n", global_counter / tthreads);
    9595                printf("Ops per procs        : %'15llu\n", global_counter / nprocs);
    96                 printf("Ops/sec/procs        : %'18.2lf\n", (((double)global_counter) / nprocs) / (end - start)`s);
    97                 printf("ns per ops/procs     : %'18.2lf\n", ((double)(end - start)`ns) / (global_counter / nprocs));
     96                printf("Ops/sec/procs        : %'18.2lf\n", (((double)global_counter) / nprocs) / (end - start)`ds);
     97                printf("ns per ops/procs     : %'18.2lf\n", (end - start)`dns / (global_counter / nprocs));
    9898                fflush(stdout);
    9999        }
  • benchmark/readyQ/cycle.go

    r16ba4a6f r18f0b70  
    7272        p.Printf("Cycle size (# thrds) : %d\n", ring_size);
    7373        p.Printf("Total Operations(ops): %15d\n", global_counter)
    74         p.Printf("Yields per second    : %18.2f\n", float64(global_counter) / delta.Seconds())
     74        p.Printf("Ops per second       : %18.2f\n", float64(global_counter) / delta.Seconds())
    7575        p.Printf("ns per ops           : %18.2f\n", float64(delta.Nanoseconds()) / float64(global_counter))
    7676        p.Printf("Ops per threads      : %15d\n", global_counter / uint64(tthreads))
  • benchmark/readyQ/rq_bench.hfa

    r16ba4a6f r18f0b70  
    8888}
    8989
    90 struct bench_sem {
     90struct __attribute__((aligned(128))) bench_sem {
    9191        struct $thread * volatile ptr;
    9292};
  • benchmark/readyQ/rq_bench.hpp

    r16ba4a6f r18f0b70  
    7575}
    7676
    77 class bench_sem {
     77class __attribute__((aligned(128))) bench_sem {
    7878        Fibre * volatile ptr = nullptr;
    7979public:
  • benchmark/rmit.py

    r16ba4a6f r18f0b70  
    173173        # ================================================================================
    174174        # Prepare to run
    175         print(actions)
    176175
    177176        # find expected time
     
    226225                        d = [r[0], r[1]]
    227226                        for k in headers[2:]:
    228                                 d.append(r[2][k])
     227                                try:
     228                                        d.append(r[2][k])
     229                                except:
     230                                        d.append(0.0)
    229231
    230232                        data.append(d)
Note: See TracChangeset for help on using the changeset viewer.