def benchmark_internal(ctx, track, track_setup): ctx.mechanic.start_metrics(track, track_setup) cluster = ctx.mechanic.start_engine(track, track_setup) driver.Driver(ctx.config, cluster, track, track_setup).go() ctx.mechanic.stop_engine(cluster) ctx.mechanic.revise_candidate() ctx.mechanic.stop_metrics()
def __init__(self, cfg): self.config = cfg self.mechanic = mechanic.Mechanic(cfg) self.driver = driver.Driver(cfg) self.marshal = track.Marshal(cfg) self.reporter = reporter.SummaryReporter(cfg) self.sweeper = sweeper.Sweeper(cfg)
def benchmark_external(ctx): track = ctx.track challenge = ctx.challenge print("Racing on track [%s] and challenge [%s]" % (track.name, challenge.name)) ctx.mechanic.setup_index(ctx.cluster, track, challenge) driver.Driver(ctx.config, ctx.cluster, track, challenge).go() ctx.mechanic.stop_metrics()
def benchmark_internal(ctx): track = ctx.track challenge = ctx.challenge car = ctx.car print("Racing on track [%s] and challenge [%s] with car [%s]" % (track.name, challenge.name, car.name)) ctx.mechanic.start_metrics(track, challenge, car) cluster = ctx.mechanic.start_engine(car) ctx.mechanic.setup_index(cluster, track, challenge) driver.Driver(ctx.config, cluster, track, challenge).go() ctx.mechanic.stop_engine(cluster) ctx.mechanic.revise_candidate() ctx.mechanic.stop_metrics()
def benchmark_external(ctx, track, track_setup): ctx.mechanic.start_metrics(track, track_setup) cluster = ctx.mechanic.start_engine_external(track, track_setup) driver.Driver(ctx.config, cluster, track, track_setup).go() ctx.mechanic.stop_metrics()