dodb.cr/paper/graphs/addition_lru.grap
2025-01-24 00:02:35 +01:00

46 lines
960 B
Text

.G1
copy "legend.grap"
frame invis ht 3 wid 4 left solid bot solid
coord x 0,100000
label left "Cost of adding" unaligned "a new entry (ns)" left 0.8
label bot "Number of entries already in the structure" down 0.1
oblru = obefficientlru = 0
cblru = cbefficientlru = 0
legendxleft = 1000
legendxright = 50000
legendyup = 190000
legendydown = 140000
boite(legendxleft,legendxright,legendyup,legendydown)
legend_lru_addition(legendxleft,legendxright,legendyup,legendydown)
copy "../data/lru_100000_100000_redux.d" thru X
cx = $1
cblru = $2
cbefficientlru = $3
# lru efficientlru
.gcolor orange
if (oblru > 0) then {line from cx,cblru to ox,oblru}
.gcolor
.gcolor green
if (obefficientlru > 0) then {line from cx,cbefficientlru to ox,obefficientlru}
.gcolor
oblru = cblru
obefficientlru = cbefficientlru
ox = cx
# lru efficientlru
.gcolor orange
bullet at cx,cblru
.gcolor
.gcolor green
bullet at cx,cbefficientlru
.gcolor
X
.G2