INNER CODE UNIT · Python

server_command

openHiTLS/openHiTLS · testcode/benchmark/async_perf/run_async_perf.py:42

def server_command(args):
    command = [str(args.server.resolve()), "-c", str(args.concurrency), "--port", str(args.port),
               "--device-mode", args.device_mode, "-w", str(args.workers)]
    for option in ("provider_path", "cert_dir", "pin_cpu"):
        value = getattr(args, option)
        if value is not None:
            command += ["--" + option.replace("_", "-"), value]
    return command


def wait_ready(server, log):
    deadline = time.monotonic() + 30
    client_cpus = []
    while time.monotonic() < deadline:
        line = log.readline()
        if line:
            binding = re.search(r" clients=([0-9,]+)", line)
            if binding:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…