예제 #1
0
def test_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput, time_breakdown
    nfmt, nexp = test()
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    title = ""
    const = {"TXN_WRITE_PERC": 0.5}
    x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                              nfmt,
                                              x_name,
                                              v_name,
                                              constants=const)
    tput(x_vals,
         v_vals,
         summary,
         summary_client,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         xlab="Server Count",
         new_cfgs=lst,
         logscalex=True,
         legend=True)
예제 #2
0
def ycsb_load_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = ycsb_load()
    v_name = "NODE_CNT"
    x_name = "MAX_TXN_IN_FLIGHT"
    #    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    txn_write_perc = [0.01, 0.1, 0.2, 0.5, 1.0]
    txn_write_perc = [0.0, 0.5]
    skew = [0.0, 0.3, 0.6, 0.9]
    skew = [0.6]
    tcnt = [4]
    for wr, sk, thr in itertools.product(txn_write_perc, skew, tcnt):
        const = {"TXN_WRITE_PERC": wr, "ZIPF_THETA": sk, "THREAD_CNT": thr}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c], const[c])
        x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                                  nfmt,
                                                  x_name,
                                                  v_name,
                                                  constants=const)
        tput(x_vals,
             v_vals,
             summary,
             summary_client,
             cfg_fmt=fmt,
             cfg=list(exp),
             xname=x_name,
             vname=v_name,
             xlab="Open Client Connections",
             new_cfgs=lst,
             ylimit=0.14,
             logscalex=False,
             title=title)
예제 #3
0
def isolation_levels_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = isolation_levels()
    x_name = "NODE_CNT"
    v_name = "ISOLATION_LEVEL"
    #    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    txn_write_perc = [0.1, 0.2, 0.5, 1.0]
    txn_write_perc = [0.5, 1.0]
    skew = [0.0, 0.3, 0.6]
    skew = [0.6, 0.7]
    for wr, sk in itertools.product(txn_write_perc, skew):
        const = {"TXN_WRITE_PERC": wr, "ZIPF_THETA": sk}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c], const[c])
        x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                                  nfmt,
                                                  x_name,
                                                  v_name,
                                                  constants=const)
        tput(x_vals,
             v_vals,
             summary,
             summary_client,
             cfg_fmt=fmt,
             cfg=list(exp),
             xname=x_name,
             vname=v_name,
             xlab="Server Count",
             new_cfgs=lst,
             logscalex=False,
             title=title,
             name='')
예제 #4
0
def tpcc_scaling_whset_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput, time_breakdown
    nfmt, nexp = tpcc_scaling_whset()
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    #    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    warehouses = [128, 256]
    npercpay = [0.0, 0.5, 1.0]
    for wh, pp in itertools.product(warehouses, npercpay):
        const = {"NUM_WH": wh, "PERC_PAYMENT": pp}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c], const[c])
        x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                                  nfmt,
                                                  x_name,
                                                  v_name,
                                                  constants=const)
        tput(x_vals,
             v_vals,
             summary,
             summary_client,
             cfg_fmt=fmt,
             cfg=list(exp),
             xname=x_name,
             vname=v_name,
             xlab="Server Count",
             new_cfgs=lst,
             ylimit=140,
             logscalex=False,
             title=title)
예제 #5
0
def ycsb_partitions_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput, time_breakdown
    nfmt, nexp = ycsb_partitions()
    x_name = "PART_PER_TXN"
    v_name = "CC_ALG"
    #    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    txn_write_perc = [0.0, 0.5, 1.0]
    skew = [0.0, 0.6, 0.7]
    for sk, wr in itertools.product(skew, txn_write_perc):
        try:
            const = {"TXN_WRITE_PERC": wr, "ZIPF_THETA": sk}
            title = ""
            for c in const.keys():
                title += "{} {},".format(SHORTNAMES[c], const[c])
            x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                                      nfmt,
                                                      x_name,
                                                      v_name,
                                                      constants=const)
            tput(x_vals,
                 v_vals,
                 summary,
                 summary_client,
                 cfg_fmt=fmt,
                 cfg=list(exp),
                 xname=x_name,
                 vname=v_name,
                 xlab="Server Count",
                 new_cfgs=lst,
                 ylimit=140,
                 logscalex=False,
                 title=title)
        except IndexError:
            continue
예제 #6
0
def ycsb_writes_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput, time_breakdown
    nfmt, nexp = ycsb_writes()
    x_name = "TXN_WRITE_PERC"
    v_name = "CC_ALG"
    #    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    skew = [0.6, 0.7]
    for sk in skew:
        const = {"ZIPF_THETA": sk}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c], const[c])
        x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                                  nfmt,
                                                  x_name,
                                                  v_name,
                                                  constants=const)
        tput(x_vals,
             v_vals,
             summary,
             summary_client,
             cfg_fmt=fmt,
             cfg=list(exp),
             xname=x_name,
             vname=v_name,
             xlab="Server Count",
             new_cfgs=lst,
             ylimit=140,
             logscalex=False,
             title=title)
예제 #7
0
def tput_setup(
    summary,
    summary_cl,
    nfmt,
    nexp,
    x_name,
    v_name,
    extras={},
    title=""
    #        ,extras={'PART_CNT':'NODE_CNT','CLIENT_NODE_CNT':'NODE_CNT','PART_PER_TXN':'NODE_CNT'}
):
    from plot_helper import tput
    x_vals = []
    v_vals = []
    exp = [list(e) for e in nexp]
    fmt = list(nfmt)
    print(x_name)
    print(v_name)
    for e in exp:
        x_vals.append(e[fmt.index(x_name)])
        del e[fmt.index(x_name)]
    fmt.remove(x_name)
    for e in exp:
        v_vals.append(e[fmt.index(v_name)])
        del e[fmt.index(v_name)]
    fmt.remove(v_name)
    for x in extras.keys():
        if x not in fmt:
            del extras[x]
            continue
        for e in exp:
            del e[fmt.index(x)]
        fmt.remove(x)
    x_vals = list(set(x_vals))
    x_vals.sort()
    v_vals = list(set(v_vals))
    v_vals.sort()
    exp.sort()
    exp = list(k for k, _ in itertools.groupby(exp))
    for e in exp:
        #        if "PART_PER_TXN" in fmt and e[fmt.index("PART_PER_TXN")] == 1 and ("NODE_CNT" == x_name or "NODE_CNT" == v_name):
        #            continue
        #title = "System Tput "
        _title = ""
        if title == "":
            for t in fmt_title:
                if t not in fmt: continue
                _title += "{} {} ".format(SHORTNAMES[t], e[fmt.index(t)])
        else:
            _title = title
        tput(x_vals,
             v_vals,
             summary,
             summary_cl,
             cfg_fmt=fmt,
             cfg=list(e),
             xname=x_name,
             vname=v_name,
             title=_title,
             extras=extras)
예제 #8
0
def ppr_ycsb_writes_plot(summary, summary_cl):
    from experiments import ycsb_writes
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = ycsb_writes()
    x_name = "TXN_WRITE_PERC"
    v_name = "CC_ALG"

    x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                              nfmt,
                                              x_name,
                                              v_name,
                                              constants={
                                                  "NODE_CNT": 16,
                                                  "ZIPF_THETA": 0.6,
                                                  "MAX_TXN_IN_FLIGHT": 10000
                                              })
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_ycsb_writes_16",
         xlab="% of Update Transactions",
         new_cfgs=lst)
예제 #9
0
def network_sweep_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = network_sweep()
    x_name = "NETWORK_DELAY"
    v_name = "CC_ALG"
    #    for sk,wr in itertools.product(skew,txn_write_perc):
    nnodes = [2, 8]
    skew = [0.0, 0.6]
    for sk, nodes in itertools.product(skew, nnodes):
        const = {"NODE_CNT": nodes, "ZIPF_THETA": sk}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c], const[c])
        x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                                  nfmt,
                                                  x_name,
                                                  v_name,
                                                  constants=const)
        tput(x_vals,
             v_vals,
             summary,
             summary_client,
             cfg_fmt=fmt,
             cfg=list(exp),
             xname=x_name,
             vname=v_name,
             xlab="Server Count",
             new_cfgs=lst,
             logscalex=False,
             title=title)
예제 #10
0
def ppr_ycsb_partitions_abort_plot(summary, summary_cl):
    from experiments import ycsb_partitions_abort
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = ycsb_partitions_abort()
    x_name = "PART_PER_TXN"
    v_name = "CC_ALG"
    x_vals, v_vals, fmt, exp, lst = plot_prep(
        nexp, nfmt, x_name, v_name, constants={"MAX_TXN_IN_FLIGHT": 10000})
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_ycsb_partitions_abort",
         xlab="Partitions Accessed",
         new_cfgs=lst)
    x_vals, v_vals, fmt, exp, lst = plot_prep(
        nexp, nfmt, x_name, v_name, constants={"MAX_TXN_IN_FLIGHT": 12000})
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_ycsb_partitions_12k",
         xlab="Partitions Accessed",
         new_cfgs=lst)
예제 #11
0
def ppr_isolation_levels_plot(summary, summary_cl):
    from experiments import isolation_levels
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = isolation_levels()
    x_name = "NODE_CNT"
    v_name = "ISOLATION_LEVEL"
    x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                              nfmt,
                                              x_name,
                                              v_name,
                                              constants={'ZIPF_THETA': 0.6})
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_ycsb_gold",
         xlab="Server Count",
         logscalex=True,
         new_cfgs=lst,
         legend=True)
예제 #12
0
def ppr_ycsb_skew_plot(summary, summary_cl):
    from experiments import ycsb_skew
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = ycsb_skew()
    x_name = "ZIPF_THETA"
    v_name = "CC_ALG"

    #    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"NODE_CNT":2})
    #    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_skew_2",xlab="Zipf Theta",new_cfgs=lst,ylimit=120)

    #    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"NODE_CNT":4})
    #    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_skew_4",xlab="Zipf Theta",new_cfgs=lst,ylimit=120)

    #    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"NODE_CNT":8})
    #    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_skew_8",xlab="Zipf Theta",new_cfgs=lst,ylimit=120)

    x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                              nfmt,
                                              x_name,
                                              v_name,
                                              constants={"NODE_CNT": 16})
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_ycsb_skew_16",
         xlab="Zipf Theta",
         new_cfgs=lst)
예제 #13
0
def ppr_network_abort_plot(summary, summary_cl):
    from experiments import network_sweep_abort
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = network_sweep_abort()
    v_name = "CC_ALG"
    x_name = "NETWORK_DELAY"
    x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                              nfmt,
                                              x_name,
                                              v_name,
                                              constants={
                                                  "TXN_WRITE_PERC": 0.5,
                                                  "ZIPF_THETA": 0.6,
                                                  "NODE_CNT": 2
                                              })
    #    x_vals = [float(v)/1000 for v in x_vals]
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_network_abort",
         xlab="Network Latency (ms)",
         new_cfgs=lst,
         logscalex=True)
예제 #14
0
def ppr_ycsb_partitions_abort_plot(summary,summary_cl):
    from experiments import ycsb_partitions_abort
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = ycsb_partitions_abort()
    x_name = "PART_PER_TXN"
    v_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"MAX_TXN_IN_FLIGHT":10000})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_partitions_abort",xlab="Partitions Accessed",new_cfgs=lst)
예제 #15
0
def ppr_isolation_levels_plot(summary,summary_cl):
    from experiments import isolation_levels 
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = isolation_levels()
    x_name = "NODE_CNT"
    v_name = "ISOLATION_LEVEL"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={'ZIPF_THETA':0.6})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_gold",xlab="Server Count",logscalex=True,new_cfgs=lst,legend=True)
예제 #16
0
def test_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput,time_breakdown
    nfmt,nexp = test()
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    title = ""
    const={"TXN_WRITE_PERC":0.5}
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
    tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Server Count",new_cfgs=lst,logscalex=True,legend=True)
예제 #17
0
def ppr_ycsb_skew_abort_plot(summary,summary_cl):
    from experiments import ycsb_skew_abort   
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = ycsb_skew_abort()
    x_name = "ZIPF_THETA"
    v_name = "CC_ALG"

    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"NODE_CNT":16})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_skew_abort_16",xlab="Skew Factor (Theta)",new_cfgs=lst)
예제 #18
0
def ppr_network_abort_plot(summary,summary_cl):
    from experiments import network_sweep_abort
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = network_sweep_abort()
    v_name = "CC_ALG"
    x_name = "NETWORK_DELAY"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6,"NODE_CNT":2})
#    x_vals = [float(v)/1000 for v in x_vals]
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_network_abort",xlab="Network Latency (ms)",new_cfgs=lst,logscalex=True)
예제 #19
0
def ppr_ycsb_writes_plot(summary,summary_cl):
    from experiments import ycsb_writes   
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = ycsb_writes()
    x_name = "TXN_WRITE_PERC"
    v_name = "CC_ALG"

    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"NODE_CNT":16,"ZIPF_THETA":0.6,"MAX_TXN_IN_FLIGHT":10000})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_writes_16",xlab="% of Update Transactions",new_cfgs=lst)
예제 #20
0
def ppr_ycsb_scaling_abort_plot(summary,summary_cl):
    from experiments import ycsb_scaling_abort
    from helper import plot_prep
    from plot_helper import tput,time_breakdown
    nfmt,nexp = ycsb_scaling_abort()
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6,"MAX_TXN_IN_FLIGHT":10000})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_abort_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7,"MAX_TXN_IN_FLIGHT":10000})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_abort_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
예제 #21
0
def ppr_ycsb_scaling_abort_plot(summary,summary_cl):
    from experiments import ycsb_scaling_abort
    from helper import plot_prep
    from plot_helper import tput,time_breakdown
    nfmt,nexp = ycsb_scaling_abort()
    x_name = "NODE_CNT"
    v_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6,"MAX_TXN_IN_FLIGHT":10000})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_abort_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7,"MAX_TXN_IN_FLIGHT":10000})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_abort_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
예제 #22
0
def ppr_ycsb_skew_abort_plot(summary, summary_cl):
    from experiments import ycsb_skew_abort
    from helper import plot_prep
    from plot_helper import tput
    nfmt, nexp = ycsb_skew_abort()
    x_name = "ZIPF_THETA"
    v_name = "CC_ALG"

    x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                              nfmt,
                                              x_name,
                                              v_name,
                                              constants={"NODE_CNT": 16})
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_ycsb_skew_abort_16",
         xlab="Skew Factor (Theta)",
         new_cfgs=lst)

    x_name = "NODE_CNT"
    nfmt, nexp = ycsb_skew_abort()
    x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                              nfmt,
                                              x_name,
                                              v_name,
                                              constants={
                                                  "TXN_WRITE_PERC": 0.5,
                                                  "ZIPF_THETA": 0.6
                                              })
    tput(x_vals,
         v_vals,
         summary,
         summary_cl,
         cfg_fmt=fmt,
         cfg=list(exp),
         xname=x_name,
         vname=v_name,
         title="",
         name="tput_ycsb_scaling_abort",
         xlab="Server Count",
         new_cfgs=lst,
         logscalex=True)
예제 #23
0
def ycsb_writes_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput,time_breakdown
    nfmt,nexp = ycsb_writes()
    x_name="TXN_WRITE_PERC"
    v_name="CC_ALG"
#    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    skew = [0.6,0.7]
    for sk in skew:
        const={"ZIPF_THETA":sk}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c],const[c])
        x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
        tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Server Count",new_cfgs=lst,ylimit=140,logscalex=False,title=title)
예제 #24
0
def ycsb_skew_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput,time_breakdown
    nfmt,nexp = ycsb_skew()
    x_name="ZIPF_THETA"
    v_name="CC_ALG"
#    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    txn_write_perc = [0.5,1.0]
    for wr in txn_write_perc:#itertools.product(skew,txn_write_perc):
        const={"TXN_WRITE_PERC":wr}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c],const[c])
        x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
        tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Server Count",new_cfgs=lst,ylimit=140,logscalex=False,title=title)
예제 #25
0
def ppr_pps_scaling_plot(summary,summary_cl):
    from experiments import pps_scaling
    from helper import plot_prep
    from plot_helper import tput,time_breakdown,latency,abort_rate,latency_breakdown
    nfmt,nexp = pps_scaling()
    x_name = "NODE_CNT"
    v_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_pps_scaling",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_pps_scaling",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={})
    abort_rate(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="aborts_pps_scaling",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16})
    latency_breakdown(x_vals,summary,xname=x_name,title='',name='latency_breakdown_pps_scaling',cfg_fmt=fmt,cfg=list(exp),normalized=False,new_cfgs=lst)
예제 #26
0
def ppr_pps_scaling_plot(summary,summary_cl):
    from experiments import pps_scaling
    from helper import plot_prep
    from plot_helper import tput,time_breakdown,latency,abort_rate,latency_breakdown
    nfmt,nexp = pps_scaling()
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_pps_scaling",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_pps_scaling",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={})
    abort_rate(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="aborts_pps_scaling",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16})
    latency_breakdown(x_vals,summary,xname=x_name,title='',name='latency_breakdown_pps_scaling',cfg_fmt=fmt,cfg=list(exp),normalized=False,new_cfgs=lst)
예제 #27
0
def tpcc_scaling_whset_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput,time_breakdown
    nfmt,nexp = tpcc_scaling_whset()
    x_name="NODE_CNT"
    v_name="CC_ALG"
#    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    warehouses = [128,256]
    npercpay=[0.0,0.5,1.0]
    for wh,pp in itertools.product(warehouses,npercpay):
        const={"NUM_WH":wh,"PERC_PAYMENT":pp}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c],const[c])
        x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
        tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Server Count",new_cfgs=lst,ylimit=140,logscalex=False,title=title)
예제 #28
0
def network_sweep_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = network_sweep()
    x_name="NETWORK_DELAY"
    v_name="CC_ALG"
#    for sk,wr in itertools.product(skew,txn_write_perc):
    nnodes = [2,8]
    skew = [0.0,0.6]
    for sk,nodes in itertools.product(skew,nnodes):
        const={"NODE_CNT":nodes,"ZIPF_THETA":sk}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c],const[c])
        x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
        tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Server Count",new_cfgs=lst,logscalex=False,title=title)
예제 #29
0
def tput_setup(summary,summary_cl,nfmt,nexp,x_name,v_name
        ,extras={}
        ,title=""
#        ,extras={'PART_CNT':'NODE_CNT','CLIENT_NODE_CNT':'NODE_CNT','PART_PER_TXN':'NODE_CNT'}
        ):
    from plot_helper import tput
    x_vals = []
    v_vals = []
    exp = [list(e) for e in nexp]
    fmt = list(nfmt)
    print(x_name)
    print(v_name)
    for e in exp:
        x_vals.append(e[fmt.index(x_name)])
        del e[fmt.index(x_name)]
    fmt.remove(x_name)
    for e in exp:
        v_vals.append(e[fmt.index(v_name)])
        del e[fmt.index(v_name)]
    fmt.remove(v_name)
    for x in extras.keys():
        if x not in fmt: 
            del extras[x]
            continue
        for e in exp:
            del e[fmt.index(x)]
        fmt.remove(x)
    x_vals = list(set(x_vals))
    x_vals.sort()
    v_vals = list(set(v_vals))
    v_vals.sort()
    exp.sort()
    exp = list(k for k,_ in itertools.groupby(exp))
    for e in exp:
#        if "PART_PER_TXN" in fmt and e[fmt.index("PART_PER_TXN")] == 1 and ("NODE_CNT" == x_name or "NODE_CNT" == v_name):
#            continue
#title = "System Tput "
        _title = ""
        if title == "":
            for t in fmt_title:
                if t not in fmt: continue
                _title+="{} {} ".format(SHORTNAMES[t],e[fmt.index(t)])
        else:
            _title = title
        tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(e),xname=x_name,vname=v_name,title=_title,extras=extras)
예제 #30
0
def isolation_levels_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = isolation_levels()
    x_name="NODE_CNT"
    v_name="ISOLATION_LEVEL"
#    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    txn_write_perc = [0.1,0.2,0.5,1.0]
    txn_write_perc = [0.5,1.0]
    skew = [0.0,0.3,0.6]
    skew = [0.6,0.7]
    for wr,sk in itertools.product(txn_write_perc,skew):
        const={"TXN_WRITE_PERC":wr,"ZIPF_THETA":sk}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c],const[c])
        x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
        tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Server Count",new_cfgs=lst,logscalex=False,title=title,name='')
예제 #31
0
def ycsb_load_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput
    nfmt,nexp = ycsb_load()
    v_name="NODE_CNT"
    x_name="MAX_TXN_IN_FLIGHT"
#    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    txn_write_perc = [0.01,0.1,0.2,0.5,1.0]
    txn_write_perc = [0.0,0.5]
    skew = [0.0,0.3,0.6,0.9]
    skew = [0.6]
    tcnt = [4]
    for wr,sk,thr in itertools.product(txn_write_perc,skew,tcnt):
        const={"TXN_WRITE_PERC":wr,"ZIPF_THETA":sk,"THREAD_CNT":thr}
        title = ""
        for c in const.keys():
            title += "{} {},".format(SHORTNAMES[c],const[c])
        x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
        tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Open Client Connections",new_cfgs=lst,ylimit=0.14,logscalex=False,title=title)
예제 #32
0
def ycsb_scaling_plot(summary,summary_client):
    from helper import plot_prep
    from plot_helper import tput,time_breakdown
    nfmt,nexp = ycsb_scaling()
    x_name="NODE_CNT"
    v_name="CC_ALG"
#    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    skew = [0.0,0.6,0.7]
    txn_write_perc = [0.0,0.5]
    load = [10000,12000,15000]
    for sk,wr,tif in itertools.product(skew,txn_write_perc,load):
        try:
            const={"ZIPF_THETA":sk,"TXN_WRITE_PERC":wr,"MAX_TXN_IN_FLIGHT":tif}
            title = ""
            for c in const.keys():
                title += "{} {},".format(SHORTNAMES[c],const[c])
            x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants=const)
            tput(x_vals,v_vals,summary,summary_client,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,xlab="Server Count",new_cfgs=lst,ylimit=140,logscalex=False,title=title)
        except IndexError:
            continue
예제 #33
0
def ycsb_scaling_plot(summary, summary_client):
    from helper import plot_prep
    from plot_helper import tput, time_breakdown
    nfmt, nexp = ycsb_scaling()
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    #    tput_setup(summary,summary_client,nfmt,nexp,x_name,v_name)
    skew = [0.0, 0.6, 0.7]
    txn_write_perc = [0.0, 0.5]
    load = [10000, 12000, 15000]
    for sk, wr, tif in itertools.product(skew, txn_write_perc, load):
        try:
            const = {
                "ZIPF_THETA": sk,
                "TXN_WRITE_PERC": wr,
                "MAX_TXN_IN_FLIGHT": tif
            }
            title = ""
            for c in const.keys():
                title += "{} {},".format(SHORTNAMES[c], const[c])
            x_vals, v_vals, fmt, exp, lst = plot_prep(nexp,
                                                      nfmt,
                                                      x_name,
                                                      v_name,
                                                      constants=const)
            tput(x_vals,
                 v_vals,
                 summary,
                 summary_client,
                 cfg_fmt=fmt,
                 cfg=list(exp),
                 xname=x_name,
                 vname=v_name,
                 xlab="Server Count",
                 new_cfgs=lst,
                 ylimit=140,
                 logscalex=False,
                 title=title)
        except IndexError:
            continue
예제 #34
0
def ppr_ycsb_scaling_plot(summary,summary_cl):
    from experiments import ycsb_scaling
    from helper import plot_prep
    from plot_helper import tput,time_breakdown,latency,abort_rate,latency_breakdown,time_breakdown_line
    nfmt,nexp = ycsb_scaling()
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.0,"ZIPF_THETA":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_readonly",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.0,"ZIPF_THETA":0.0})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_ycsb_scaling_readonly",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.0,"ZIPF_THETA":0.0})
    time_breakdown(x_vals,summary,xname=x_name,title='',name='breakdown_ycsb_scaling_readonly',cfg_fmt=fmt,cfg=list(exp),normalized=True,new_cfgs=lst)

    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    time_breakdown_line(x_vals,v_vals,summary,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="time_break_line_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    abort_rate(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="aborts_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    time_breakdown(x_vals,summary,xname=x_name,title='',name='breakdown_ycsb_scaling_med',cfg_fmt=fmt,cfg=list(exp),normalized=True,new_cfgs=lst)
    nfmt,nexp = ycsb_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    latency_breakdown(x_vals,summary,xname=x_name,title='',name='latency_breakdown_ycsb_scaling_med',cfg_fmt=fmt,cfg=list(exp),normalized=False,new_cfgs=lst)


    x_name = "NODE_CNT"
    v_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7})
    time_breakdown_line(x_vals,v_vals,summary,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="time_break_line_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    abort_rate(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="aborts_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_name = "CC_ALG"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7})
    time_breakdown(x_vals,summary,xname=x_name,title='',name='breakdown_ycsb_scaling_high',cfg_fmt=fmt,cfg=list(exp),normalized=True,new_cfgs=lst)
예제 #35
0
def ppr_ycsb_scaling_plot(summary,summary_cl):
    from experiments import ycsb_scaling
    from helper import plot_prep
    from plot_helper import tput,time_breakdown,latency,abort_rate,latency_breakdown,time_breakdown_line
    nfmt,nexp = ycsb_scaling()
    x_name = "NODE_CNT"
    v_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.0,"ZIPF_THETA":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_readonly",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.0,"ZIPF_THETA":0.0})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_ycsb_scaling_readonly",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.0,"ZIPF_THETA":0.0})
    time_breakdown(x_vals,summary,xname=x_name,title='',name='breakdown_ycsb_scaling_readonly',cfg_fmt=fmt,cfg=list(exp),normalized=True,new_cfgs=lst)

    x_name = "NODE_CNT"
    v_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    time_breakdown_line(x_vals,v_vals,summary,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="time_break_line_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    abort_rate(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="aborts_ycsb_scaling_med",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    time_breakdown(x_vals,summary,xname=x_name,title='',name='breakdown_ycsb_scaling_med',cfg_fmt=fmt,cfg=list(exp),normalized=True,new_cfgs=lst)
    nfmt,nexp = ycsb_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.6})
    latency_breakdown(x_vals,summary,xname=x_name,title='',name='latency_breakdown_ycsb_scaling_med',cfg_fmt=fmt,cfg=list(exp),normalized=False,new_cfgs=lst)


    x_name = "NODE_CNT"
    v_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7})
    time_breakdown_line(x_vals,v_vals,summary,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="time_break_line_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7})
    latency(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="latency_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    abort_rate(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="aborts_ycsb_scaling_high",xlab="Server Count",new_cfgs=lst,logscalex=True)
    nfmt,nexp = ycsb_scaling()
    x_name = "ALGO"
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,'',constants={"NODE_CNT":16,"TXN_WRITE_PERC":0.5,"ZIPF_THETA":0.7})
    time_breakdown(x_vals,summary,xname=x_name,title='',name='breakdown_ycsb_scaling_high',cfg_fmt=fmt,cfg=list(exp),normalized=True,new_cfgs=lst)
예제 #36
0
def ppr_tpcc_scaling_plot(summary,summary_cl):
    from experiments import tpcc_scaling,tpcc_scaling1,tpcc_scaling2
    from helper import plot_prep
    from plot_helper import tput
    x_name = "NODE_CNT"
    v_name = "ALGO"
#    extras = {'PART_CNT':'NODE_CNT','CLIENT_NODE_CNT':'NODE_CNT','PART_PER_TXN':'NODE_CNT','NUM_WH':128,'PERC_PAYMENT':0.0}

    nfmt,nexp = tpcc_scaling2()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_neworder_4",xlab="Server Count",logscalex=True,new_cfgs=lst)
    nfmt,nexp = tpcc_scaling2()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":1.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_payment_4",xlab="Server Count",logscalex=True,new_cfgs=lst)

    nfmt,nexp = tpcc_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_neworder_10",xlab="Server Count",logscalex=True,new_cfgs=lst)
    nfmt,nexp = tpcc_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":1.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_payment_10",xlab="Server Count",logscalex=True,new_cfgs=lst)



    nfmt,nexp = tpcc_scaling1()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_neworder",xlab="Server Count",logscalex=True,new_cfgs=lst)
    nfmt,nexp = tpcc_scaling1()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":1.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_payment",xlab="Server Count",logscalex=True,new_cfgs=lst)
예제 #37
0
def ppr_tpcc_scaling_plot(summary,summary_cl):
    from experiments import tpcc_scaling,tpcc_scaling1,tpcc_scaling2
    from helper import plot_prep
    from plot_helper import tput
    x_name = "NODE_CNT"
    v_name = "CC_ALG"
#    extras = {'PART_CNT':'NODE_CNT','CLIENT_NODE_CNT':'NODE_CNT','PART_PER_TXN':'NODE_CNT','NUM_WH':128,'PERC_PAYMENT':0.0}

    nfmt,nexp = tpcc_scaling2()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_neworder_4",xlab="Server Count",logscalex=True,new_cfgs=lst)
    nfmt,nexp = tpcc_scaling2()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":1.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_payment_4",xlab="Server Count",logscalex=True,new_cfgs=lst)

    nfmt,nexp = tpcc_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_neworder_10",xlab="Server Count",logscalex=True,new_cfgs=lst)
    nfmt,nexp = tpcc_scaling()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":1.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_payment_10",xlab="Server Count",logscalex=True,new_cfgs=lst)



    nfmt,nexp = tpcc_scaling1()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":0.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_neworder",xlab="Server Count",logscalex=True,new_cfgs=lst)
    nfmt,nexp = tpcc_scaling1()
    x_vals,v_vals,fmt,exp,lst = plot_prep(nexp,nfmt,x_name,v_name,constants={"PERC_PAYMENT":1.0})
    tput(x_vals,v_vals,summary,summary_cl,cfg_fmt=fmt,cfg=list(exp),xname=x_name,vname=v_name,title="",name="tput_tpcc_payment",xlab="Server Count",logscalex=True,new_cfgs=lst)