diff --git a/examples/paper-timekiller/experiments/data/tps-min.csv b/examples/paper-timekiller/experiments/data/tps-min.csv new file mode 100644 index 0000000..d4f0835 --- /dev/null +++ b/examples/paper-timekiller/experiments/data/tps-min.csv @@ -0,0 +1,25 @@ +time,tps +0.0 , 811.6666666666666 +1.0 , 793.3333333333334 +2.0 , 793.3333333333334 +3.0 , 2066.6499999999999 +4.0 , 1833.3333333333333 +5.0 , 1889.6666666666667 +6.0 , 1833.3333333333333 +7.0 , 1889.6666666666667 +8.0 , 1683.35 +9.0 , 798.3333333333334 +10.0 , 800.0 +11.0 , 808.3333333333334 +12.0 , 791.6666666666666 +13.0 , 803.3333333333334 +14.0 , 803.3333333333334 +15.0 , 2116.6499999999999 +16.0 , 1871.6666666666667 +17.0 , 1833.3333333333333 +18.0 , 1871.6666666666667 +19.0 , 1833.3333333333333 +20.0 , 1666.6833333333334 +21.0 , 805.0 +22.0 , 791.6666666666666 +23.0 , 808.3333333333334 \ No newline at end of file diff --git a/examples/paper-timekiller/experiments/exp-decompose.pdf b/examples/paper-timekiller/experiments/exp-decompose.pdf index 1e627b9..7abe569 100644 Binary files a/examples/paper-timekiller/experiments/exp-decompose.pdf and b/examples/paper-timekiller/experiments/exp-decompose.pdf differ diff --git a/examples/paper-timekiller/experiments/exp-decompose.tex b/examples/paper-timekiller/experiments/exp-decompose.tex index 9454754..994ed79 100644 --- a/examples/paper-timekiller/experiments/exp-decompose.tex +++ b/examples/paper-timekiller/experiments/exp-decompose.tex @@ -27,7 +27,7 @@ xlabel={\#txns}, x tick style={draw=none}, ylabel={Time (s)}, - ymax=90, + ymax=20, ymin=0, ybar stacked, bar width=15, @@ -39,8 +39,8 @@ \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=load, col sep=comma] {./data/decompose-txns.csv}; \addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=sort, col sep=comma] {./data/decompose-txns.csv}; \addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=check, col sep=comma] {./data/decompose-txns.csv}; - \addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-txns.csv}; - \legend{Loading,Sorting,Checking,GC} + %\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-txns.csv}; + \legend{Loading,Sorting,Checking} \end{axis} \end{tikzpicture} \begin{tikzpicture} @@ -50,7 +50,7 @@ xlabel={\#sessions}, x tick style={draw=none}, ylabel={Time (s)}, - ymax=3, + ymax=2.5, ymin=0, ybar stacked, bar width=15, @@ -62,7 +62,7 @@ \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=load, col sep=comma] {./data/decompose-sessions.csv}; \addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=sort, col sep=comma] {./data/decompose-sessions.csv}; \addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=check, col sep=comma] {./data/decompose-sessions.csv}; - \addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-sessions.csv}; + %\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-sessions.csv}; %\legend{Loading,Sorting,Checking,GC} \end{axis} \end{tikzpicture} @@ -73,7 +73,7 @@ xlabel={\#keys}, x tick style={draw=none}, ylabel={Time (s)}, - ymax=3, + ymax=2.5, ymin=0, ybar stacked, bar width=15, @@ -85,7 +85,7 @@ \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=load, col sep=comma] {./data/decompose-vars.csv}; \addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=sort, col sep=comma] {./data/decompose-vars.csv}; \addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=check, col sep=comma] {./data/decompose-vars.csv}; - \addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-vars.csv}; + %\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-vars.csv}; %\legend{Loading,Sorting,Checking,GC} \end{axis} \end{tikzpicture} @@ -99,7 +99,7 @@ xlabel={\#ops/txn}, x tick style={draw=none}, %ylabel={Time (s)}, - ymax=12.5, + ymax=10, ymin=0, ybar stacked, bar width=15, @@ -111,7 +111,7 @@ \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=load, col sep=comma] {./data/decompose-nops.csv}; \addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=sort, col sep=comma] {./data/decompose-nops.csv}; \addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=check, col sep=comma] {./data/decompose-nops.csv}; - \addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-nops.csv}; + %\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-nops.csv}; %\legend{Loading,Sorting,Checking,GC} \end{axis} \end{tikzpicture} @@ -122,7 +122,7 @@ xlabel={read proportion \%}, x tick style={draw=none}, %ylabel={Time (s)}, - ymax=3, + ymax=2.5, ymin=0, ybar stacked, bar width=15, @@ -134,7 +134,7 @@ \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=load, col sep=comma] {./data/decompose-readpct.csv}; \addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=sort, col sep=comma] {./data/decompose-readpct.csv}; \addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=check, col sep=comma] {./data/decompose-readpct.csv}; - \addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-readpct.csv}; + %\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-readpct.csv}; %\legend{Loading,Sorting,Checking,GC} \end{axis} \end{tikzpicture} @@ -145,7 +145,7 @@ xlabel={ key distribution }, x tick style={draw=none}, %ylabel={Time (s)}, - ymax=3, + ymax=2.5, ymin=0, ybar stacked, bar width=15, @@ -157,7 +157,7 @@ \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=load, col sep=comma] {./data/decompose-distrib.csv}; \addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=sort, col sep=comma] {./data/decompose-distrib.csv}; \addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=check, col sep=comma] {./data/decompose-distrib.csv}; - \addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-distrib.csv}; + %\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc, col sep=comma] {./data/decompose-distrib.csv}; %\legend{Loading,Sorting,Checking,GC} \end{axis} \end{tikzpicture} diff --git a/examples/paper-timekiller/experiments/exp-runtime.pdf b/examples/paper-timekiller/experiments/exp-runtime.pdf index cd9ecf3..39b80a4 100644 Binary files a/examples/paper-timekiller/experiments/exp-runtime.pdf and b/examples/paper-timekiller/experiments/exp-runtime.pdf differ diff --git a/examples/paper-timekiller/experiments/exp-runtime.tex b/examples/paper-timekiller/experiments/exp-runtime.tex index 27eac4f..55bf795 100644 --- a/examples/paper-timekiller/experiments/exp-runtime.tex +++ b/examples/paper-timekiller/experiments/exp-runtime.tex @@ -27,13 +27,16 @@ ylabel={Time (s)}, ymax=200, ymin=0, + xtick={0,200000,400000,600000,800000,1000000}, + xticklabels={0,2,4,6,8,10}, + xtick scale label code/.code={$\cdot 10^{5}$}, legend pos=north west ] - \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/txns.csv}; \addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=gc10k, col sep=comma] {./data/txns.csv}; \addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/txns.csv}; \addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=gc50k, col sep=comma] {./data/txns.csv}; - \legend{fast,gc10k,gc20k,gc50k} + \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/txns.csv}; + \legend{gc-10k,gc-20k,gc-50k,gc-$\infty$} \end{axis} \end{tikzpicture} \begin{tikzpicture} @@ -48,11 +51,11 @@ mark list* \nextlist } ] - \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/sessions.csv}; \addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=gc10k, col sep=comma] {./data/sessions.csv}; \addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/sessions.csv}; \addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=gc50k, col sep=comma] {./data/sessions.csv}; - %\legend{fast,gc10k,gc20k,gc50k} + \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/sessions.csv}; + %\legend{gc-10k,gc-20k,gc-50k,gc-$\infty$} \end{axis} \end{tikzpicture} \begin{tikzpicture} @@ -63,11 +66,11 @@ ymax=4, ymin=0, ] - \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/vars.csv}; \addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=gc10k, col sep=comma] {./data/vars.csv}; \addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/vars.csv}; \addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=gc50k, col sep=comma] {./data/vars.csv}; - %\legend{fast,gc10k,gc20k,gc50k} + \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/vars.csv}; + %\legend{gc-10k,gc-20k,gc-50k,gc-$\infty$} \end{axis} \end{tikzpicture} \end{minipage} @@ -81,11 +84,11 @@ ymax=20, ymin=0, ] - \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/nops.csv}; \addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=gc10k, col sep=comma] {./data/nops.csv}; \addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/nops.csv}; \addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=gc50k, col sep=comma] {./data/nops.csv}; - %\legend{fast,gc10k,gc20k,gc50k} + \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/nops.csv}; + %\legend{gc-10k,gc-20k,gc-50k,gc-$\infty$} \end{axis} \end{tikzpicture} \begin{tikzpicture} @@ -97,11 +100,11 @@ ymin=0, legend pos=north east ] - \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/readpct.csv}; \addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=gc10k, col sep=comma] {./data/readpct.csv}; \addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/readpct.csv}; \addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=gc50k, col sep=comma] {./data/readpct.csv}; - %\legend{fast,gc10k,gc20k,gc50k} + \addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=fast, col sep=comma] {./data/readpct.csv}; + %\legend{gc-10k,gc-20k,gc-50k,gc-$\infty$} \end{axis} \end{tikzpicture} \begin{tikzpicture} @@ -119,11 +122,11 @@ xtick=data, xticklabels={uniform,zipfian,hotspot} ] - \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=fast, col sep=comma] {./data/distrib.csv}; \addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=gc10k, col sep=comma] {./data/distrib.csv}; \addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=gc20k, col sep=comma] {./data/distrib.csv}; \addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=gc50k, col sep=comma] {./data/distrib.csv}; - %\legend{fast,gc10k,gc20k,gc50k} + \addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=fast, col sep=comma] {./data/distrib.csv}; + %\legend{gc-10k,gc-20k,gc-50k,gc-$\infty$} \end{axis} \end{tikzpicture} \end{minipage}