Changeset aec2c022


Ignore:
Timestamp:
Aug 16, 2022, 4:12:49 PM (7 weeks ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
master, pthread-emulation
Children:
cd3fc46
Parents:
71cf630
Message:

Clean-up the benchmarks a little

Location:
benchmark/readyQ
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/locality.cfa

    r71cf630 raec2c022  
    273273        }
    274274
     275        setlocale( LC_NUMERIC, getenv( "LANG" ) );
    275276        printf("Duration (ms)          : %'lf\n", (end - start)`dms);
    276277        printf("Number of processors   : %'d\n", nprocs);
     
    278279        printf("Total Operations(ops)  : %'15llu\n", global_count);
    279280        printf("Work size (64bit words): %'15u\n", wsize);
     281        printf("Data sharing           : %s\n", share ? "On" : "Off");
    280282        printf("Total Operations(ops)  : %'15llu\n", global_count);
    281283        printf("Total G Migrations     : %'15llu\n", global_gmigs);
  • benchmark/readyQ/locality.cpp

    r71cf630 raec2c022  
    283283        printf("Number of spots        : %'d\n", nspots);
    284284        printf("Work size (64bit words): %'15u\n", wsize);
     285        printf("Data sharing           : %s\n", share ? "On" : "Off");
    285286        printf("Total Operations(ops)  : %'15llu\n", global_count);
    286287        printf("Total G Migrations     : %'15llu\n", global_gmigs);
  • benchmark/readyQ/locality.go

    r71cf630 raec2c022  
    286286        // Print with nice 's, i.e. 1'000'000 instead of 1000000
    287287        p := message.NewPrinter(language.English)
    288         p.Printf("Duration (ms)          : %f\n", delta.Milliseconds());
     288        p.Printf("Duration (ms)          : %d\n", delta.Milliseconds());
    289289        p.Printf("Number of processors   : %d\n", nprocs);
    290290        p.Printf("Number of threads      : %d\n", nthreads);
    291291        p.Printf("Work size (64bit words): %d\n", size);
     292        if share {
     293                p.Printf("Data sharing           : On\n");
     294        } else {
     295                p.Printf("Data sharing           : Off\n");
     296        }
    292297        p.Printf("Total Operations(ops)  : %15d\n", results.count)
    293298        p.Printf("Total G Migrations     : %15d\n", results.gmigs)
  • benchmark/readyQ/locality.rs

    r71cf630 raec2c022  
    346346        println!("Number of threads      : {}", (nthreads).to_formatted_string(&Locale::en));
    347347        println!("Work size (64bit words): {}", (wsize).to_formatted_string(&Locale::en));
     348        println!("Data sharing           : {}", if share { "On" } else { "Off" });
    348349        println!("Total Operations(ops)  : {:>15}", (results.count).to_formatted_string(&Locale::en));
    349350        println!("Total G Migrations     : {:>15}", (results.gmigs).to_formatted_string(&Locale::en));
  • benchmark/readyQ/rq_bench.hfa

    r71cf630 raec2c022  
    11#include <clock.hfa>
    22#include <kernel.hfa>
     3#include <locale.h>
    34#include <parseargs.hfa>
    45#include <stdio.h>
  • benchmark/readyQ/transfer.cfa

    r71cf630 raec2c022  
    179179        sout | "Threads parking on wait : " | (exhaust ? "yes" : "no");
    180180        sout | "Rechecking              : " | rechecks;
    181         sout | "ns per transfer         : " | (end - start)`dms / lead_idx;
     181        sout | "us per transfer         : " | (end - start)`dus / lead_idx;
    182182
    183183
  • benchmark/readyQ/transfer.go

    r71cf630 raec2c022  
    244244        p.Printf("Threads parking on wait : %s\n", ws)
    245245        p.Printf("Rechecking              : %d\n", rechecks )
    246         p.Printf("ns per transfer         : %f\n", float64(delta.Nanoseconds()) / float64(leader.idx) )
    247 }
     246        p.Printf("ms per transfer         : %f\n", float64(delta.Milliseconds()) / float64(leader.idx) )
     247}
Note: See TracChangeset for help on using the changeset viewer.