20,
            "Capacity [#]",
            "Query Time [s]",
            r"Time for Query (FP Rate: $1^{{-20}}$, Stored: To Cap., "
            r"1Bil Queries, "
            "10 Reps)",
            adjust=(LEFT_ADJUST, RIGHT_ADJUST, TOP_ADJUST, BOTTOM_ADJUST),
            xticks=xticks[:],
            xlabels=xlabels[:],
            x_label_step=2)

# Insertion Time
if False or PLOT_ALL:
    with plot_settings(half_width=True):
        d = read_data(input_dir + f"{name}.csv", 1, 6)
        d = convert_to_minutes(d)
        error_plot_mult(
            [d],
            output_dir + f'insert_time{EXTENSION}',
            100000000,
            0,
            400,
            100,
            "Capacity [#]",
            "Insertion Time [min]",
            r"Time for Insertion (FP Rate: $1^{{-20}}$, Stored: To Cap., "
            r"10 Reps)",
            adjust=(LEFT_ADJUST + 0.02, RIGHT_ADJUST, TOP_ADJUST,
                    BOTTOM_ADJUST),
            xticks=xticks[:],
            xlabels=xlabels[:],
示例#2
0
#         minor_xlabels=minor_xlabels,
#         # x_rotation=30
#     )
# Latency WITHOUT TLS ---------------------------------------------------------
if False or PLOT_ALL:
    with plot_settings(half_width=True):
        name = "butthead_psi_latency"
        data_list = read_data_mult(input_dir + f"latency/{name}.csv", 2, 10, 7)
        for d in data_list.values():
            # Remove 2er potencies
            del d[2**20]
            del d[2**21]
            del d[2**22]
            del d[2**23]
            del d[2**24]
            convert_to_minutes(d)
        print("Runtime at 300ms: ",
              sum(data_list[300][10**7]) / len(data_list[300][10**7]), "min")
        latencies = sorted(data_list.keys(), reverse=True)
        legend_labels = [f"{i}ms" for i in latencies]
        legend_labels[-2] = "  50ms"
        legend_labels[-1] = "    0ms"
        xticks = list(range(0, 10**7 + 1, 2 * 10**6))
        error_plot_mult(
            [data_list[i] for i in latencies],
            output_dir + f'{name}{EXTENSION}',
            2 * 10**6,
            0,
            5,
            1,
            "PSI Set Size [#]",