def METHOD_NAME(benchmark, submit_and_await, aiida_localhost, workchain, iterations, outgoing):
    """Benchmark Workchains, executed in the via a daemon runner."""
    code = InstalledCode(
        default_calc_job_plugin='core.arithmetic.add', computer=aiida_localhost, filepath_executable='/bin/true'
    )
    def _run():
        builder = workchain.get_builder()
        builder.code = code
        builder.iterations = Int(iterations)
        return submit_and_await(builder, timeout=30)
    result = benchmark.pedantic(_run, iterations=1, rounds=10, warmup_rounds=1)
    assert result.is_finished_ok, (result.exit_status, result.exit_message)
    assert len(result.base.links.get_outgoing().all()) == outgoing