Changeset 8faa6612


Ignore:
Timestamp:
May 10, 2022, 12:26:53 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
3613e25
Parents:
00675a1
Message:

Minor fixes to how benchmarks handle yes/no arguments

Location:
benchmark/readyQ
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/bench.go

    r00675a1 r8faa6612  
    7171                duration = 5
    7272                clock_mode = true
    73                 fmt.Printf("Running for %f seconds\n", duration)
     73                fmt.Printf("Running for %f seconds (default)\n", duration)
    7474        }
    7575
  • benchmark/readyQ/rq_bench.hpp

    r00675a1 r8faa6612  
    143143        }
    144144
     145        if(strcmp(arg, "Y") == 0) {
     146                value = true;
     147                return true;
     148        }
     149
     150        if(strcmp(arg, "y") == 0) {
     151                value = true;
     152                return true;
     153        }
     154
    145155        if(strcmp(arg, "no") == 0) {
     156                value = false;
     157                return true;
     158        }
     159
     160        if(strcmp(arg, "N") == 0) {
     161                value = false;
     162                return true;
     163        }
     164
     165        if(strcmp(arg, "n") == 0) {
    146166                value = false;
    147167                return true;
Note: See TracChangeset for help on using the changeset viewer.