MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / main

Function main

tools/openpgl_bench/openpgl_bench.cpp:433–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433int main(int argc, char *argv[])
434{
435 std::list<std::string> args(argv, argv + argc);
436
437 BenchParams benchParams;
438 bool success = parseCommandLine(args, benchParams);
439 success = success ? benchParams.validate() : false;
440
441 if (success)
442 {
443 switch (benchParams.type)
444 {
445 case HELP:
446 print_help();
447 break;
448
449 case INIT_FIELD:
450 init_field(benchParams);
451 break;
452
453 case BENCH_LOOKUP:
454 bench_lookup_sample(benchParams, false, false);
455 break;
456
457 case BENCH_LOOKUP_SAMPLE:
458 bench_lookup_sample(benchParams, true, true);
459 break;
460
461 default:
462 print_help();
463 break;
464 }
465 }
466 else
467 {
468 }
469 return 0;
470}

Callers

nothing calls this directly

Calls 5

init_fieldFunction · 0.85
bench_lookup_sampleFunction · 0.85
parseCommandLineFunction · 0.70
print_helpFunction · 0.70
validateMethod · 0.45

Tested by

no test coverage detected