dodb.cr/paper/graph_query_partition.grap

77 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-05-13 21:46:02 +02:00
.G1
copy "legend.grap"
frame invis ht 3 wid 4 left solid bot solid
coord x 0,5000*2 y 0,350
ticks left out from 0 to 350 by 50
2024-05-28 06:31:50 +02:00
ticks bot out from 1000 to 10000 by 1000
2024-05-13 21:46:02 +02:00
label left "Request duration" unaligned "for a partition (ms)" "(Median)" left 0.8
label bot "Number of cars matching the partition" down 0.1
2024-05-24 00:25:28 +02:00
obram = obuncache = obfifo = obcache = obsemi = 0
cbram = cbuncache = cbfifo = cbcache = cbsemi = 0
2024-05-13 21:46:02 +02:00
legendxleft = 1000
legendxright = 6500
legendyup = 330
legendydown = 230
boite(legendxleft,legendxright,legendyup,legendydown)
legend(legendxleft,legendxright,legendyup,legendydown)
copy "../data/partitions.d" thru X
cx = $1*2
y_scale = 1000000
2024-05-24 00:25:28 +02:00
# ram cached fifo semi uncached
2024-05-13 21:46:02 +02:00
line from cx,$2/y_scale to cx,$4/y_scale
line from cx,$5/y_scale to cx,$7/y_scale
line from cx,$8/y_scale to cx,$10/y_scale
line from cx,$11/y_scale to cx,$13/y_scale
2024-05-24 00:25:28 +02:00
line from cx,$14/y_scale to cx,$16/y_scale
2024-05-13 21:46:02 +02:00
#ty = $3
cbram = $3/y_scale
cbcache = $6/y_scale
2024-05-24 00:25:28 +02:00
cbfifo = $9/y_scale
cbsemi = $12/y_scale
cbuncache = $15/y_scale
2024-05-13 21:46:02 +02:00
if (obram > 0) then {line from cx,cbram to ox,obram}
if (obcache > 0) then {line from cx,cbcache to ox,obcache}
2024-05-24 00:25:28 +02:00
.gcolor pink
if (obfifo > 0) then {line from cx,cbfifo to ox,obfifo}
.gcolor
2024-05-13 21:46:02 +02:00
.gcolor blue
if (obsemi > 0) then {line from cx,cbsemi to ox,obsemi}
.gcolor
.gcolor green
if (obuncache > 0) then {line from cx,cbuncache to ox,obuncache}
.gcolor
obram = cbram
obcache = cbcache
2024-05-24 00:25:28 +02:00
obfifo = cbfifo
2024-05-13 21:46:02 +02:00
obsemi = cbsemi
obuncache = cbuncache
ox = cx
2024-05-24 00:25:28 +02:00
# ram cached fifo semi uncached
2024-05-13 21:46:02 +02:00
.gcolor red
bullet at cx,cbram
.gcolor
bullet at cx,cbcache
2024-05-24 00:25:28 +02:00
.gcolor pink
bullet at cx,cbfifo
.gcolor
2024-05-13 21:46:02 +02:00
.gcolor blue
bullet at cx,cbsemi
.gcolor
.gcolor green
bullet at cx,cbuncache
.gcolor
X
.G2