import re


def extract_webp_dt(stderr: bytes) -> float:
    """ Extract decompression speed from the dwebp output

    :param stderr: Console output
    :return: Decompression speed, in MP/s
    """
    # Extract
    ds: str = re.findall(r"Time to decode picture: \d+.\d+s", str(stderr, "utf-8"))[0]\
        .split("Time to decode picture: ")[-1]
    return float(ds[:-1])