Skip to content

Commit

Permalink
update timekiller
Browse files Browse the repository at this point in the history
  • Loading branch information
FertileFragrance committed Nov 28, 2024
1 parent 9167721 commit 1a29069
Show file tree
Hide file tree
Showing 25 changed files with 245 additions and 83 deletions.
8 changes: 4 additions & 4 deletions examples/paper-timekiller/experiments/data/mem-distrib.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
param,gc20k,Elle,PolySI,Viper
uniform,1400.05,10191.41,30000,30000
zipfian,1380.18,10660.59,30000,30000
hotspot,1402.49,9741.35,30000,30000
param,gc20k,Elle,PolySI,Viper,Emme
uniform,1400.05,10191.41,30000,30000,30000
zipfian,1380.18,10660.59,30000,30000,30000
hotspot,1402.49,9741.35,30000,30000,30000
12 changes: 6 additions & 6 deletions examples/paper-timekiller/experiments/data/mem-txns.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
param,gc20k,PolySI,Viper,Elle
5000,249.02,9824.91,6210.67,1205.22
10000,277.38,25340.56,23452.24,2172.86
100000,1397.77,30000,30000,9538.86
500000,6929.16,30000,30000,19694.15
1000000,12626.27,30000,30000,29734.23
param,gc20k,PolySI,Viper,Elle,Emme
5000,249.02,9824.91,6210.67,1205.22,144.36
10000,277.38,25340.56,23452.24,2172.86,479.07
100000,1397.77,30000,30000,9538.86,30000
500000,6929.16,30000,30000,19694.15,30000
1000000,12626.27,30000,30000,29734.23,30000
20 changes: 10 additions & 10 deletions examples/paper-timekiller/experiments/data/other-tools-elle.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
txns,ElleList,TimeKiller
1000,1.2142,0.2864
2000,1.716,0.3532
3000,2.3614,0.4468
4000,3.073,0.508
5000,3.8878,0.5722
6000,4.6872,0.646
7000,5.5236,0.7044
8000,6.5714,0.8058
9000,7.671,0.8844
10000,8.9222,1.0084
1000,0.875,0.226
2000,1.259,0.296
3000,1.877,0.376
4000,2.557,0.431
5000,3.001,0.491
6000,3.624,0.580
7000,4.428,0.613
8000,4.885,0.731
9000,6.027,0.796
10000,7.108,0.961
24 changes: 12 additions & 12 deletions examples/paper-timekiller/experiments/data/other-tools-ellekv.csv
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
txns,ElleKV,TimeKiller
5000,1.8542,0.4246
10000,2.834,0.5166
20000,4.732,0.6716
30000,6.7478,0.8064
40000,8.4488,0.937
50000,10.4632,1.097
60000,12.4416,1.216
70000,14.3454,1.3526
80000,16.2314,1.453
90000,18.2326,1.677
100000,20.7206,1.7182
txns,ElleKV,TimeKiller,Emme
5000,1.468,0.342,2.37365
10000,2.323,0.433,9.67495
20000,3.657,0.552,43.92352
30000,5.826,0.690,97.84114
40000,7.303,0.808,100
50000,8.628,0.985,100
60000,10.019,1.077,100
70000,12.093,1.192,100
80000,13.589,1.402,100
90000,14.498,1.565,100
100000,17.275,1.64,100
18 changes: 9 additions & 9 deletions examples/paper-timekiller/experiments/data/other-tools.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
txns,PolySI,Viper,TimeKiller,ElleKV
100,0.318,0.132,0.2084,0.1898
250,0.6682,1.14,0.2164,0.2856
500,1.5446,4.802,0.2538,0.3846
1000,4.3658,89.622,0.2702,0.5544
1500,11.4066,100,0.2878,0.7276
2000,17.84,100,0.3048,0.864
2500,33.1966,100,0.3218,0.956
3000,61.621,100,0.3502,1.21
txns,PolySI,Viper,TimeKiller,ElleKV,Emme
100,0.267,0.11,0.168,0.175,0.00295
250,0.599,0.80,0.185,0.221,0.01026
500,1.284,4.31,0.203,0.316,0.03058
1000,3.551,84.17,0.234,0.478,0.10014
1500,9.596,100,0.237,0.555,0.21589
2000,14.413,100,0.254,0.680,0.37334
2500,28.456,100,0.263,0.838,0.65781
3000,51.919,100,0.283,1.086,0.89958

Binary file not shown.
74 changes: 74 additions & 0 deletions examples/paper-timekiller/experiments/exp-decompose-ab.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
\documentclass[border=0pt]{standalone}
\input{../newcommands}
\pagestyle{empty} % Remove page numbering
\usepackage[left=68pt, right=0pt, top=72pt, bottom=0pt]{geometry}

\begin{document}
\pgfplotsset{height=140pt, width=200pt}
% https://tex.stackexchange.com/questions/6388/how-to-scale-a-tikzpicture-to-textwidth
\makeatletter
\newsavebox{\measure@tikzpicture}
\NewEnviron{scaletikzpicturetowidth}[1]{%
\def\tikz@width{#1}%
\def\tikzscale{1}\begin{lrbox}{\measure@tikzpicture}%
\BODY
\end{lrbox}%
\pgfmathparse{#1/\wd\measure@tikzpicture}%
\edef\tikzscale{\pgfmathresult}%
\BODY
}
\makeatother

\begin{minipage}{0.48\textwidth}
\begin{tikzpicture}
\begin{axis}[
% title={(30\%) writes; 10k txns}
title={(a)},
xlabel={\#txns},
x tick style={draw=none},
ylabel={Time (s)},
ymax=20,
ymin=0,
ybar stacked,
bar width=15,
area legend,
legend pos=north west,
xtick=data,
xticklabels={$5000$,$10^4$,$10^5$,$5 \times 10^5$,$10^6$}
]
\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}
\end{axis}
\end{tikzpicture}
\end{minipage}
\hspace{-60pt}
\begin{minipage}{0.48\textwidth}
\begin{tikzpicture}
\begin{axis}[
% title={(30\%) writes; 10k txns}
title={(b)},
xlabel={\#ops/txn},
x tick style={draw=none},
%ylabel={Time (s)},
ymax=10,
ymin=0,
ybar stacked,
bar width=15,
area legend,
legend style={at={(0.35, 0.7)}, anchor=west},
xtick=data,
xticklabels={5,15,30,50,100}
]
\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};
%\legend{Loading,Sorting,Checking,GC}
\end{axis}
\end{tikzpicture}
\end{minipage}
\hspace{-96pt}
\end{document}
Binary file not shown.
80 changes: 80 additions & 0 deletions examples/paper-timekiller/experiments/exp-memory-af.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
\documentclass[border=0pt]{standalone}
\input{../newcommands}
\pagestyle{empty} % Remove page numbering
\usepackage[left=68pt, right=0pt, top=72pt, bottom=0pt]{geometry}

\begin{document}
\pgfplotsset{height=140pt, width=200pt}
% https://tex.stackexchange.com/questions/6388/how-to-scale-a-tikzpicture-to-textwidth
\makeatletter
\newsavebox{\measure@tikzpicture}
\NewEnviron{scaletikzpicturetowidth}[1]{%
\def\tikz@width{#1}%
\def\tikzscale{1}\begin{lrbox}{\measure@tikzpicture}%
\BODY
\end{lrbox}%
\pgfmathparse{#1/\wd\measure@tikzpicture}%
\edef\tikzscale{\pgfmathresult}%
\BODY
}
\makeatother

\begin{minipage}{0.48\textwidth}
\begin{tikzpicture}
\begin{axis}[
title={(a)},
xlabel={\#txns},
ylabel={Memory (MB)},
ymax=15000,
ymin=0,
legend pos=south east,
xtick={0,200000,400000,600000,800000,1000000},
xticklabels={0,2,4,6,8,10},
xtick scale label code/.code={$\cdot 10^{5}$},
ytick={0,5000,10000,15000},
yticklabels={0,5,10,15},
ytick scale label code/.code={$\cdot 10^{3}$},
]
\addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=PolySI, col sep=comma] {./data/mem-txns.csv};
\addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=Viper, col sep=comma] {./data/mem-txns.csv};
\addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=Elle, col sep=comma] {./data/mem-txns.csv};
\addplot[color=purple,mark=star,mark size=3pt] table [x=param, y=Emme, col sep=comma] {./data/mem-txns.csv};
\addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/mem-txns.csv};
\legend{PolySI,Viper,ElleKV,Emme-SI,\textup{\textsc{Chronos}}}
\end{axis}
\end{tikzpicture}
\end{minipage}
\hspace{-60pt}
\begin{minipage}{0.48\textwidth}
\begin{tikzpicture}
\begin{axis}[
title={(b)},
xlabel={ key distribution },
x tick style={draw=none},
%ylabel={Memory (MB)},
ymin=0,
ymax=12000,
xmin=-0.5,
xmax=2.5,
ybar,
bar width=7pt,
area legend,
legend columns=2,
legend style={at={(0, 0.5)}, anchor=west},
xtick=data,
xticklabels={uniform,zipfian,hotspot},
ytick={0,5000,10000,15000},
yticklabels={0,5,10,15},
ytick scale label code/.code={$\cdot 10^{3}$},
]
\addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=PolySI, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=Viper, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=Elle, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=purple, pattern color=purple,pattern=north east lines] table [x expr=\coordindex, y=Emme, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=gc20k, col sep=comma] {./data/mem-distrib.csv};
\legend{PolySI,Viper,ElleKV,Emme-SI,\textup{\textsc{Chronos}}}
\end{axis}
\end{tikzpicture}
\end{minipage}
\hspace{-96pt}
\end{document}
Binary file modified examples/paper-timekiller/experiments/exp-memory-simplified.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
\addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=PolySI, col sep=comma] {./data/mem-txns.csv};
\addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=Viper, col sep=comma] {./data/mem-txns.csv};
\addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=Elle, col sep=comma] {./data/mem-txns.csv};
\addplot[color=purple,mark=star,mark size=3pt] table [x=param, y=Emme, col sep=comma] {./data/mem-txns.csv};
\addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/mem-txns.csv};
\legend{PolySI,Viper,ElleKV,\textup{\textsc{Chronos}}}
\legend{PolySI,Viper,ElleKV,Emme-SI,\textup{\textsc{Chronos}}}
\end{axis}
\end{tikzpicture}
\end{minipage}
Expand Down
Binary file modified examples/paper-timekiller/experiments/exp-memory.pdf
Binary file not shown.
9 changes: 6 additions & 3 deletions examples/paper-timekiller/experiments/exp-memory.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
\addplot[color=blue,mark=square,mark size=3pt] table [x=param, y=PolySI, col sep=comma] {./data/mem-txns.csv};
\addplot[color=red,mark=triangle,mark size=3pt] table [x=param, y=Viper, col sep=comma] {./data/mem-txns.csv};
\addplot[color=brown,mark=o,mark size=3pt] table [x=param, y=Elle, col sep=comma] {./data/mem-txns.csv};
\addplot[color=purple,mark=star,mark size=3pt] table [x=param, y=Emme, col sep=comma] {./data/mem-txns.csv};
\addplot[color=black,mark=x,mark size=3pt] table [x=param, y=gc20k, col sep=comma] {./data/mem-txns.csv};
\legend{PolySI,Viper,ElleKV,\textup{\textsc{Chronos}}}
\legend{PolySI,Viper,ElleKV,Emme-SI,\textup{\textsc{Chronos}}}
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
Expand Down Expand Up @@ -133,9 +134,10 @@
xmin=-0.5,
xmax=2.5,
ybar,
bar width=7pt,
area legend,
legend columns=2,
legend style={at={(0, 0.6)}, anchor=west},
legend style={at={(0, 0.5)}, anchor=west},
xtick=data,
xticklabels={uniform,zipfian,hotspot},
ytick={0,5000,10000,15000},
Expand All @@ -145,8 +147,9 @@
\addplot[color=blue, pattern color=blue, pattern=crosshatch] table [x expr=\coordindex, y=PolySI, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=red, pattern color=red, pattern=crosshatch dots] table [x expr=\coordindex, y=Viper, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=brown, pattern color=brown, fill=brown] table [x expr=\coordindex, y=Elle, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=purple, pattern color=purple,pattern=north east lines] table [x expr=\coordindex, y=Emme, col sep=comma] {./data/mem-distrib.csv};
\addplot[color=black, pattern color=black,pattern=north west lines] table [x expr=\coordindex, y=gc20k, col sep=comma] {./data/mem-distrib.csv};
\legend{PolySI,Viper,ElleKV,\textup{\textsc{Chronos}}}
\legend{PolySI,Viper,ElleKV,Emme-SI,\textup{\textsc{Chronos}}}
\end{axis}
\end{tikzpicture}
\end{minipage}
Expand Down
Binary file modified examples/paper-timekiller/experiments/exp-online-flip-100-10.pdf
Binary file not shown.
16 changes: 7 additions & 9 deletions examples/paper-timekiller/experiments/exp-online-flip-100-10.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
xticklabels={1,2,3,4+},
legend pos=north east
]
\addplot coordinates {(1,2676) (2,267)
(3,33) (4,6)};
\addplot coordinates {(1,3564) (2,278)
(3,33) (4,6)};
\addplot[color=blue, pattern color=blue, pattern=crosshatch] coordinates {(1,2676) (2,267) (3,33) (4,6)};
\addplot[color=red, pattern color=red, pattern=crosshatch dots] coordinates {(1,3564) (2,278) (3,33) (4,6)};
\legend{txn,(txn, key)}
\end{axis}
\end{tikzpicture}
Expand All @@ -61,11 +59,11 @@
xtick={1,2,3,4,5},
xticklabels={0-1,1-2,2-10,10-99,1000+}
]
\addplot[color=red,fill=red!30] coordinates {(1,1582)};
\addplot[color=orange,fill=orange!30] coordinates {(2,1506)};
\addplot[color=brown,fill=brown!30] coordinates {(3,393)};
\addplot[color=blue,fill=blue!30] coordinates {(4,24)};
\addplot[color=black,fill=black!30] coordinates {(5,59)};
\addplot[color=blue, pattern color=blue, pattern=crosshatch] coordinates {(1,1582)};
\addplot[color=red, pattern color=red, pattern=crosshatch dots] coordinates {(2,1506)};
\addplot[color=brown, pattern color=brown, fill=brown] coordinates {(3,393)};
\addplot[color=purple, pattern color=purple,pattern=north east lines] coordinates {(4,24)};
\addplot[color=black, pattern color=black,pattern=north west lines] coordinates {(5,59)};
\end{axis}
\end{tikzpicture}
\end{minipage}
Expand Down
Binary file modified examples/paper-timekiller/experiments/exp-online-tps-aionsi.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions examples/paper-timekiller/experiments/exp-online-tps-aionsi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
%legend style={at={(0.25,0.8)},anchor=west},
legend style={
draw=none,
font=\fontsize{3}{3},
font=\fontsize{4.4}{3},
%font=\tiny,
at={(0.52,0.98)},
at={(0.46,0.98)},
anchor=north west,
/tikz/every even column/.append style={column sep=0pt}
},
Expand All @@ -28,9 +28,9 @@
color \nextlist
mark list* \nextlist
}]
\addplot[color=purple!50!blue] table [x=time, y=aion, col sep=comma] {./data/tps-aionsi-no-gc.csv};
\addplot[color=blue] table [x=time, y=aion, col sep=comma] {./data/tps-aionsi-checking-gc.csv};
\addplot[color=cyan] table [x=time, y=aion, col sep=comma] {./data/tps-aionsi-full-gc.csv};
\addplot[color=purple!50!blue,mark=square*,mark size=1.5pt] table [x=time, y=aion, col sep=comma] {./data/tps-aionsi-no-gc.csv};
\addplot[color=blue,mark=triangle*,mark size=1.5pt] table [x=time, y=aion, col sep=comma] {./data/tps-aionsi-checking-gc.csv};
\addplot[color=cyan,mark=*,mark size=1.5pt] table [x=time, y=aion, col sep=comma] {./data/tps-aionsi-full-gc.csv};
\legend{
\textup{\textsc{Aion}}\textnormal{-no-gc},
\textup{\textsc{Aion}}\textnormal{-checking-gc},
Expand Down
Binary file modified examples/paper-timekiller/experiments/exp-online-tps-cobra.pdf
Binary file not shown.
32 changes: 16 additions & 16 deletions examples/paper-timekiller/experiments/exp-online-tps-cobra.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
%legend style={at={(0.25,0.8)},anchor=west},
legend style={
draw=none,
font=\fontsize{3}{3},
font=\fontsize{4.4}{3},
%font=\tiny,
at={(0.52,0.98)},
at={(0.474,0.98)},
anchor=north west,
/tikz/every even column/.append style={column sep=0pt}
},
Expand All @@ -28,21 +28,21 @@
color \nextlist
mark list* \nextlist
}]
\addplot[color=purple!50!blue] table [x=time, y=aion, col sep=comma] {./data/tps-aion-no-gc.csv};
\addplot[color=blue] table [x=time, y=aion, col sep=comma] {./data/tps-aion-checking-gc.csv};
\addplot[color=cyan] table [x=time, y=aion, col sep=comma] {./data/tps-aion-full-gc.csv};
\addplot[color=red] table [x=time, y=f20r2400, col sep=comma] {./data/tps-cobra.csv};
\addplot[color=pink] table [x=time, y=f20r4800, col sep=comma] {./data/tps-cobra.csv};
\addplot[color=orange] table [x=time, y=f1r2400, col sep=comma] {./data/tps-cobra.csv};
\addplot[color=yellow] table [x=time, y=f1r4800, col sep=comma] {./data/tps-cobra.csv};
\addplot[color=purple!50!blue,mark=square*,mark size=1.5pt] table [x=time, y=aion, col sep=comma] {./data/tps-aion-no-gc.csv};
\addplot[color=blue,mark=triangle*,mark size=1.5pt] table [x=time, y=aion, col sep=comma] {./data/tps-aion-checking-gc.csv};
\addplot[color=cyan,mark=*,mark size=1.5pt] table [x=time, y=aion, col sep=comma] {./data/tps-aion-full-gc.csv};
\addplot[color=red,mark=square,mark size=1.5pt] table [x=time, y=f20r2400, col sep=comma] {./data/tps-cobra.csv};
\addplot[color=pink,mark=triangle,mark size=1.5pt] table [x=time, y=f20r4800, col sep=comma] {./data/tps-cobra.csv};
\addplot[color=orange,mark=o,mark size=1.5pt] table [x=time, y=f1r2400, col sep=comma] {./data/tps-cobra.csv};
\addplot[color=yellow,mark=diamond,mark size=1.5pt] table [x=time, y=f1r4800, col sep=comma] {./data/tps-cobra.csv};
\legend{
\textup{\textsc{Aion}}\textnormal{-no-gc},
\textup{\textsc{Aion}}\textnormal{-checking-gc},
\textup{\textsc{Aion}}\textnormal{-full-gc},
\textnormal{Cobra-fence20-round2k4},
\textnormal{Cobra-fence20-round4k8},
\textnormal{Cobra-fence1-round2k4},
\textnormal{Cobra-fence1-round4k8}
\textup{\textsc{Aion-SER}}\textnormal{-no-gc},
\textup{\textsc{Aion-SER}}\textnormal{-checking-gc},
\textup{\textsc{Aion-SER}}\textnormal{-full-gc},
\textnormal{Cobra-F20-R2k4},
\textnormal{Cobra-F20-R4k8},
\textnormal{Cobra-F1-R2k4},
\textnormal{Cobra-F1-R4k8}
}
\end{axis}
\end{tikzpicture}
Expand Down
Binary file modified examples/paper-timekiller/experiments/exp-other-tools-elle.pdf
Binary file not shown.
Loading

0 comments on commit 1a29069

Please sign in to comment.