From 20c7068e4c26152468ad89242c817bd514aa6470 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Sun, 12 May 2024 19:24:50 +0200 Subject: [PATCH] Graph: change the Y scale. --- graphs/graphs.ms | 102 +++++++++++++++++++++++++++-------------------- 1 file changed, 59 insertions(+), 43 deletions(-) diff --git a/graphs/graphs.ms b/graphs/graphs.ms index afbc64f..f40673d 100644 --- a/graphs/graphs.ms +++ b/graphs/graphs.ms @@ -1,39 +1,41 @@ .NH -Graphs for DODB. +Indexes .LP -.PS -reset -.PE .G1 -label left "Request duration for an index (ns)" "(Median and" "fifth percentiles)" -label bot "Number of cars" +frame invis ht 3 wid 4 left solid bot solid +coord y 0,50 +ticks left out from 0 to 50 by 10 + +label left "Request duration with" unaligned "an index (us)" "(Median)" left 1 +label bot "Number of cars in the database" # minx = 1e12; maxx = -1e12 n = sigx = sigx2 = sigy = sigxy = 0 -obram = obuncache = obcache = obsemi = 0 -cbram = cbuncache = cbcache = cbsemi = 0 +obram = obuncache = obcache = obsemi = 0 # old bullets +cbram = cbuncache = cbcache = cbsemi = 0 # current bullets -coord y -5,75000 copy "../data/index.d" thru X cx = $1*5 + y_scale = 1000 + # ram cached semi uncached - line from cx,$2 to cx,$4 - line from cx,$5 to cx,$7 - line from cx,$8 to cx,$10 - line from cx,$11 to cx,$13 + 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 #ty = $3 cx = $1*5 - cbram = $3 - cbcache = $6 - cbsemi = $9 - cbuncache = $12 + cbram = $3/y_scale + cbcache = $6/y_scale + cbsemi = $9/y_scale + cbuncache = $12/y_scale if (obram > 0) then {line from cx,cbram to ox,obram} if (obcache > 0) then {line from cx,cbcache to ox,obcache} @@ -75,9 +77,16 @@ X #line from minx,slope*minx+inter to maxx,slope*maxx+inter .G2 +.NH +Partitions +.LP .G1 -label left "Request duration for a partition (ns)" "(Median and" "fifth percentiles)" -label bot "Number of cars" +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 + +label left "Request duration for a partition (ms)" unaligned "(Median)" left 1.2 +label bot "Number of cars matching the partition" # minx = 1e12; maxx = -1e12 n = sigx = sigx2 = sigy = sigxy = 0 @@ -85,23 +94,23 @@ n = sigx = sigx2 = sigy = sigxy = 0 obram = obuncache = obcache = obsemi = 0 cbram = cbuncache = cbcache = cbsemi = 0 -coord y -5,40000 - copy "../data/partitions.d" thru X - cx = $1*5 + cx = $1*2 + + y_scale = 1000000 # ram cached semi uncached - line from cx,$2 to cx,$4 - line from cx,$5 to cx,$7 - line from cx,$8 to cx,$10 - line from cx,$11 to cx,$13 + 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 #ty = $3 - cbram = $3 - cbcache = $6 - cbsemi = $9 - cbuncache = $12 + cbram = $3/y_scale + cbcache = $6/y_scale + cbsemi = $9/y_scale + cbuncache = $12/y_scale if (obram > 0) then {line from cx,cbram to ox,obram} if (obcache > 0) then {line from cx,cbcache to ox,obcache} @@ -142,10 +151,13 @@ X ## print slope; print inter #line from minx,slope*minx+inter to maxx,slope*maxx+inter .G2 - +.bp +.NH +Tags +.LP .G1 -label left "Request duration for a tag (ns)" "(Median and" "fifth percentiles)" -label bot "Number of cars" +label left "Request duration for a tag (ms)" unaligned "(Median)" left 1.2 +label bot "Number of cars matching the tag" # minx = 1e12; maxx = -1e12 n = sigx = sigx2 = sigy = sigxy = 0 @@ -153,23 +165,27 @@ n = sigx = sigx2 = sigy = sigxy = 0 obram = obuncache = obcache = obsemi = 0 cbram = cbuncache = cbcache = cbsemi = 0 -coord y -5,40000 +coord x 0,5000 y 0,170 +ticks left out from 0 to 170 by 20 +frame invis ht 2 wid 4 left solid bot solid copy "../data/tags.d" thru X - cx = $1*5 + cx = $1 + + y_scale = 1000000 # ram cached semi uncached - line from cx,$2 to cx,$4 - line from cx,$5 to cx,$7 - line from cx,$8 to cx,$10 - line from cx,$11 to cx,$13 + 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 #ty = $3 - cbram = $3 - cbcache = $6 - cbsemi = $9 - cbuncache = $12 + cbram = $3/y_scale + cbcache = $6/y_scale + cbsemi = $9/y_scale + cbuncache = $12/y_scale if (obram > 0) then {line from cx,cbram to ox,obram} if (obcache > 0) then {line from cx,cbcache to ox,obcache}