Changeset 06573b2 for benchmark/readyQ


Ignore:
Timestamp:
Dec 28, 2020, 3:17:07 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
772b300
Parents:
28220d2
Message:

Other minor fixes to benchmarks

Location:
benchmark/readyQ
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/locality.cfa

    r28220d2 r06573b2  
    6363}
    6464
    65 __attribute__((nolinline)) void access(MyData & this, size_t idx) {
     65__attribute__((noinline)) void access(MyData & this, size_t idx) {
    6666        size_t l = this.len;
    6767        this.data[idx % l] += 1;
     
    126126// ==================================================
    127127// Do some work by accessing 'cnt' cells in the array
    128 __attribute__((nolinline)) void work(MyData & data, size_t cnt, uint64_t & state) {
     128__attribute__((noinline)) void work(MyData & data, size_t cnt, uint64_t & state) {
    129129        for (cnt) {
    130130                access(data, __xorshift64(state));
     
    261261        }
    262262
    263         printf("Duration (ms)          : %'ld\n", (end - start)`dms);
     263        printf("Duration (ms)          : %'lf\n", (end - start)`dms);
    264264        printf("Number of processors   : %'d\n", nprocs);
    265265        printf("Number of threads      : %'d\n", nthreads);
    266266        printf("Total Operations(ops)  : %'15llu\n", global_count);
    267         printf("Work size (64bit words): %'15llu\n", wsize);
     267        printf("Work size (64bit words): %'15u\n", wsize);
    268268        printf("Total Operations(ops)  : %'15llu\n", global_count);
    269269        printf("Total G Migrations     : %'15llu\n", global_gmigs);
  • benchmark/readyQ/locality.go

    r28220d2 r06573b2  
    282282        // Print with nice 's, i.e. 1'000'000 instead of 1000000
    283283        p := message.NewPrinter(language.English)
    284         p.Printf("Duration (ms)          : %f\n", delta.Seconds());
     284        p.Printf("Duration (s)           : %f\n", delta.Seconds());
    285285        p.Printf("Number of processors   : %d\n", nprocs);
    286286        p.Printf("Number of threads      : %d\n", nthreads);
  • benchmark/readyQ/rq_bench.hfa

    r28220d2 r06573b2  
    3939                } else if(stop_count > 0) { \
    4040                        clock_mode = false; \
    41                         printf("Running for %lu iterations\n", stop_count); \
     41                        printf("Running for %llu iterations\n", stop_count); \
    4242                } else { \
    4343                        duration = 5; clock_mode = true;\
Note: See TracChangeset for help on using the changeset viewer.