Changeset 6dc2db9


Ignore:
Timestamp:
Sep 15, 2021, 4:31:56 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
fa6233a
Parents:
b8454c6
Message:

Change benchmarks to consistently print duration in ms.

Location:
benchmark/readyQ
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/locality.go

    rb8454c6 r6dc2db9  
    286286        // Print with nice 's, i.e. 1'000'000 instead of 1000000
    287287        p := message.NewPrinter(language.English)
    288         p.Printf("Duration (s)           : %f\n", delta.Seconds());
     288        p.Printf("Duration (ms)          : %f\n", delta.Milliseconds());
    289289        p.Printf("Number of processors   : %d\n", nprocs);
    290290        p.Printf("Number of threads      : %d\n", nthreads);
  • benchmark/readyQ/transfer.cfa

    rb8454c6 r6dc2db9  
    167167        }
    168168
    169         sout | "Duration                : " | ws(3, 3, unit(eng((end - start)`ds))) | 's';
     169        sout | "Duration (ms)           : " | ws(3, 3, unit(eng((end - start)`dms)));
    170170        sout | "Number of processors    : " | nprocs;
    171171        sout | "Number of threads       : " | nthreads;
  • benchmark/readyQ/transfer.cpp

    rb8454c6 r6dc2db9  
    173173        }
    174174
    175         std::cout << "Duration                : " << to_miliseconds(end - start) << "ms" << std::endl;
     175        std::cout << "Duration (ms)           : " << to_miliseconds(end - start) << std::endl;
    176176        std::cout << "Number of processors    : " << nprocs << std::endl;
    177177        std::cout << "Number of threads       : " << nthreads << std::endl;
  • benchmark/readyQ/transfer.go

    rb8454c6 r6dc2db9  
    215215                ws = "no"
    216216        }
    217         p.Printf("Duration (s)            : %f\n", delta.Seconds() )
     217        p.Printf("Duration (ms)           : %f\n", delta.Milliseconds() )
    218218        p.Printf("Number of processors    : %d\n", nprocs )
    219219        p.Printf("Number of threads       : %d\n", nthreads )
  • benchmark/readyQ/yield.cfa

    rb8454c6 r6dc2db9  
    8080                }
    8181
    82                 printf("Duration (ms)       : %'ld\n", (end - start)`ms);
     82                printf("Duration (ms)       : %'ld\n", (end - start)`dms);
    8383                printf("Number of processors: %'d\n", nprocs);
    8484                printf("Number of threads   : %'d\n", nthreads);
  • benchmark/readyQ/yield.cpp

    rb8454c6 r6dc2db9  
    154154
    155155                auto dur_nano = duration_cast<std::nano>(duration);
     156                auto dur_dms  = duration_cast<std::milli>(duration);
    156157
    157                 std::cout << "Took " << duration << " s\n";
     158                printf("Duration (ms)       : %'.2lf\n", dur_dms );
    158159                printf("Total yields        : %'15llu\n", global_counter );
    159160                printf("Yields per procs    : %'15llu\n", global_counter / nprocs );
Note: See TracChangeset for help on using the changeset viewer.