2024-05-12 20:47:09 +02:00
|
|
|
define boite {
|
|
|
|
xleft = $1
|
|
|
|
xright = $2
|
|
|
|
yup = $3
|
|
|
|
ydown = $4
|
|
|
|
|
|
|
|
line from xleft,ydown to xright,ydown
|
|
|
|
line from xleft,yup to xright,yup
|
|
|
|
line from xleft,yup to xleft,ydown
|
|
|
|
line from xright,yup to xright,ydown
|
|
|
|
}
|
|
|
|
|
|
|
|
define legend {
|
|
|
|
xleft = $1
|
|
|
|
xright = $2
|
|
|
|
yup = $3
|
|
|
|
ydown = $4
|
|
|
|
|
|
|
|
diffx = xright - xleft
|
|
|
|
diffy = yup - ydown
|
|
|
|
|
2024-05-24 00:25:28 +02:00
|
|
|
hdiff = diffy/5.7
|
2024-05-13 21:46:02 +02:00
|
|
|
cy = yup - (diffy/6)
|
2024-05-12 20:47:09 +02:00
|
|
|
cx = (diffx/20) + xleft
|
|
|
|
|
|
|
|
lstartx = cx
|
|
|
|
lendx = cx + diffx/8
|
|
|
|
tstartx = lendx + diffx/20
|
|
|
|
|
2024-05-24 00:25:28 +02:00
|
|
|
.ps -2
|
2024-05-12 20:47:09 +02:00
|
|
|
.gcolor red
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"RAM only" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
line from lstartx,cy to lendx,cy
|
2024-05-13 21:46:02 +02:00
|
|
|
"Cached db and index" ljust at tstartx,cy
|
2024-05-12 20:47:09 +02:00
|
|
|
cy = cy - hdiff
|
2024-05-24 00:25:28 +02:00
|
|
|
.gcolor pink
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"FIFO db and cached index" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
2024-05-12 20:47:09 +02:00
|
|
|
.gcolor blue
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"Uncached db, cached index" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
.gcolor green
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"Uncached db and index" ljust at tstartx,cy
|
2024-05-24 00:25:28 +02:00
|
|
|
.ps +2
|
2024-05-12 20:47:09 +02:00
|
|
|
}
|
2024-05-26 19:03:37 +02:00
|
|
|
|
2024-05-28 04:26:26 +02:00
|
|
|
define legend_common {
|
|
|
|
xleft = $1
|
|
|
|
xright = $2
|
|
|
|
yup = $3
|
|
|
|
ydown = $4
|
|
|
|
|
|
|
|
diffx = xright - xleft
|
|
|
|
diffy = yup - ydown
|
|
|
|
|
|
|
|
hdiff = diffy/4.5
|
|
|
|
cy = yup - (diffy/6)
|
|
|
|
cx = (diffx/20) + xleft
|
|
|
|
|
|
|
|
lstartx = cx
|
|
|
|
lendx = cx + diffx/8
|
|
|
|
tstartx = lendx + diffx/20
|
|
|
|
|
|
|
|
.ps -2
|
|
|
|
.gcolor red
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"1k" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
.gcolor green
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"5k" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
"10k" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
.gcolor pink
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"20k" ljust at tstartx,cy
|
|
|
|
.ps +2
|
|
|
|
}
|
|
|
|
|
2024-05-26 19:03:37 +02:00
|
|
|
define legend_fifo_addition {
|
|
|
|
xleft = $1
|
|
|
|
xright = $2
|
|
|
|
yup = $3
|
|
|
|
ydown = $4
|
|
|
|
|
|
|
|
diffx = xright - xleft
|
|
|
|
diffy = yup - ydown
|
|
|
|
|
|
|
|
hdiff = diffy/3.5
|
|
|
|
cy = yup - (diffy/10)
|
|
|
|
cx = (diffx/20) + xleft
|
|
|
|
|
|
|
|
lstartx = cx
|
|
|
|
lendx = cx + diffx/8
|
|
|
|
tstartx = lendx + diffx/20
|
|
|
|
|
|
|
|
.ps -2
|
|
|
|
cy = cy - hdiff
|
|
|
|
.gcolor orange
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"basic FIFO" ljust at tstartx,cy
|
|
|
|
cy = cy - hdiff
|
|
|
|
.gcolor green
|
|
|
|
line from lstartx,cy to lendx,cy
|
|
|
|
.gcolor
|
|
|
|
"Efficient FIFO" ljust at tstartx,cy
|
|
|
|
.ps +2
|
|
|
|
}
|