MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / workflow_default

Function workflow_default

test/feature-benchmark/mzcompose.py:427–742  ·  view source on GitHub ↗

Feature benchmark framework.

(c: Composition, parser: WorkflowArgumentParser)

Source from the content-addressed store, hash-verified

425
426
427def workflow_default(c: Composition, parser: WorkflowArgumentParser) -> None:
428 """Feature benchmark framework."""
429 c.silent = True
430
431 parser.add_argument(
432 "--redpanda",
433 action="store_true",
434 help="run against Redpanda instead of the Confluent Platform",
435 )
436
437 parser.add_argument(
438 "--measure-memory",
439 default=True,
440 action=argparse.BooleanOptionalAction,
441 help="Measure memory usage",
442 )
443
444 parser.add_argument(
445 "--this-tag",
446 metavar="TAG",
447 type=str,
448 default=os.getenv("THIS_TAG", None),
449 help="'This' Materialize container tag to benchmark. If not provided, the current source will be used.",
450 )
451
452 parser.add_argument(
453 "--this-balancerd",
454 action=argparse.BooleanOptionalAction,
455 default=False,
456 help="Use balancerd for THIS",
457 )
458
459 parser.add_argument(
460 "--this-params",
461 metavar="PARAMS",
462 type=str,
463 default=os.getenv("THIS_PARAMS", None),
464 help="Semicolon-separated list of parameter=value pairs to apply to the 'THIS' Mz instance",
465 )
466
467 parser.add_argument(
468 "--other-tag",
469 metavar="TAG",
470 type=str,
471 default=os.getenv("OTHER_TAG", str(get_latest_published_version())),
472 help="'Other' Materialize container tag to benchmark. If not provided, the last released Mz version will be used.",
473 )
474
475 parser.add_argument(
476 "--other-params",
477 metavar="PARAMS",
478 type=str,
479 default=os.getenv("OTHER_PARAMS", None),
480 help="Semicolon-separated list of parameter=value pairs to apply to the 'OTHER' Mz instance",
481 )
482
483 parser.add_argument(
484 "--other-balancerd",

Callers

nothing calls this directly

Calls 15

add_scenario_resultMethod · 0.95
has_scenario_resultMethod · 0.95
all_subclassesFunction · 0.90
ServiceClass · 0.90
ReportClass · 0.90

Tested by

no test coverage detected