def get_solver_from_bench(bench):
    """Extract the solver from a benchmark.

    Assumes each benchmark's name is of the format:

        "problem_size matrix_type solver_name"
    """
    _, _, solver = bench.get_name().split("-")
    return solver