File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1919using namespace OIIO ;
2020
2121
22- static int iterations = 0 ; // 1000000;
23- static int ntrials = 5 ;
22+ static int ntrials = 5 ;
2423
2524
2625
@@ -562,9 +561,9 @@ getargs(int argc, char* argv[])
562561 " image_span_test -- unit test and benchmarks for OpenImageIO/image_span.h\n " OIIO_INTRO_STRING)
563562 .usage (" image_span_test [options]" );
564563
565- ap.arg (" --iterations %d" , &iterations)
566- .help (Strutil::fmt::format (" Number of iterations (default: {})" ,
567- iterations));
564+ // ap.arg("--iterations %d", &iterations)
565+ // .help(Strutil::fmt::format("Number of iterations (default: {})",
566+ // iterations));
568567 ap.arg (" --trials %d" , &ntrials).help (" Number of trials" );
569568
570569 ap.parse_args (argc, (const char **)argv);
@@ -577,9 +576,8 @@ main(int argc, char* argv[])
577576{
578577#if !defined(NDEBUG) || defined(OIIO_CI) || defined(OIIO_CODE_COVERAGE)
579578 // For the sake of test time, reduce the default iterations for DEBUG,
580- // CI, and code coverage builds. Explicit use of --iters or -- trials
579+ // CI, and code coverage builds. Explicit use of --trials
581580 // will override this, since it comes before the getargs() call.
582- iterations /= 10 ;
583581 ntrials = 1 ;
584582#endif
585583
Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ getargs(int argc, char* argv[])
4343 OIIO_INTRO_STRING)
4444 .usage (" simd_test [options]" );
4545
46- ap.arg (" --iterations %d" , &iterations)
46+ ap.arg (" --iters %d" , &iterations)
4747 .help (Strutil::fmt::format (" Number of iterations (default: {})" , iterations));
48+ ap.arg (" --iterations %d" , &iterations)
49+ .hidden (); // obsolete synonym for --iters
4850 ap.arg (" --trials %d" , &ntrials)
4951 .help (" Number of trials" );
5052
You can’t perform that action at this time.
0 commit comments