.NH Graphs for DODB. .LP .PS reset .PE .G1 label left "Request duration for an index (ns)" "(Median and" "fifth percentiles)" label bot "Number of cars" # minx = 1e12; maxx = -1e12 n = sigx = sigx2 = sigy = sigxy = 0 obram = obuncache = obcache = obsemi = 0 cbram = cbuncache = cbcache = cbsemi = 0 coord y -5,75000 copy "../data/index.d" thru X cx = $1*5 # 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 #ty = $3 cx = $1*5 cbram = $3 cbcache = $6 cbsemi = $9 cbuncache = $12 if (obram > 0) then {line from cx,cbram to ox,obram} if (obcache > 0) then {line from cx,cbcache to ox,obcache} .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 obsemi = cbsemi obuncache = cbuncache ox = cx # ram cached semi uncached .gcolor red bullet at cx,cbram .gcolor bullet at cx,cbcache .gcolor blue bullet at cx,cbsemi .gcolor .gcolor green bullet at cx,cbuncache .gcolor #n = n+1 #sigx = sigx+$1; sigx2 = sigx2+$1*$1 #sigy = sigy+ty; sigxy = sigxy+$1*ty #minx = min(minx,$1); maxx = max(maxx,$1) X ## Calculate least squares fit and draw it #slope = (n*sigxy - sigx*sigy) / (n*sigx2 - sigx*sigx) #inter = (sigy - slope*sigx) / n ## print slope; print inter #line from minx,slope*minx+inter to maxx,slope*maxx+inter .G2 .G1 label left "Request duration for a partition (ns)" "(Median and" "fifth percentiles)" label bot "Number of cars" # minx = 1e12; maxx = -1e12 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 # 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 #ty = $3 cbram = $3 cbcache = $6 cbsemi = $9 cbuncache = $12 if (obram > 0) then {line from cx,cbram to ox,obram} if (obcache > 0) then {line from cx,cbcache to ox,obcache} .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 obsemi = cbsemi obuncache = cbuncache ox = cx # ram cached semi uncached .gcolor red bullet at cx,cbram .gcolor bullet at cx,cbcache .gcolor blue bullet at cx,cbsemi .gcolor .gcolor green bullet at cx,cbuncache .gcolor #n = n+1 #sigx = sigx+$1; sigx2 = sigx2+$1*$1 #sigy = sigy+ty; sigxy = sigxy+$1*ty #minx = min(minx,$1); maxx = max(maxx,$1) X ## Calculate least squares fit and draw it #slope = (n*sigxy - sigx*sigy) / (n*sigx2 - sigx*sigx) #inter = (sigy - slope*sigx) / n ## print slope; print inter #line from minx,slope*minx+inter to maxx,slope*maxx+inter .G2 .G1 label left "Request duration for a tag (ns)" "(Median and" "fifth percentiles)" label bot "Number of cars" # minx = 1e12; maxx = -1e12 n = sigx = sigx2 = sigy = sigxy = 0 obram = obuncache = obcache = obsemi = 0 cbram = cbuncache = cbcache = cbsemi = 0 coord y -5,40000 copy "../data/tags.d" thru X cx = $1*5 # 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 #ty = $3 cbram = $3 cbcache = $6 cbsemi = $9 cbuncache = $12 if (obram > 0) then {line from cx,cbram to ox,obram} if (obcache > 0) then {line from cx,cbcache to ox,obcache} .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 obsemi = cbsemi obuncache = cbuncache ox = cx # ram cached semi uncached .gcolor red bullet at cx,cbram .gcolor bullet at cx,cbcache .gcolor blue bullet at cx,cbsemi .gcolor .gcolor green bullet at cx,cbuncache .gcolor #n = n+1 #sigx = sigx+$1; sigx2 = sigx2+$1*$1 #sigy = sigy+ty; sigxy = sigxy+$1*ty #minx = min(minx,$1); maxx = max(maxx,$1) X ## Calculate least squares fit and draw it #slope = (n*sigxy - sigx*sigy) / (n*sigx2 - sigx*sigx) #inter = (sigy - slope*sigx) / n ## print slope; print inter #line from minx,slope*minx+inter to maxx,slope*maxx+inter .G2 .\" .G1 .\" GROWTHFACTOR=0.07 .\" grid bot dotted from 0 to 100 by 10 .\" grid left dotted from 0 to 800 by 50 .\" frame ht 2.5 wid 2.8 .\" define expo { $1+$1*GROWTHFACTOR } .\" value = 1 .\" draw LINEAR solid .\" for i from 1 to 100 by 1 do { .\" next LINEAR at i, i .\" times at i, value .\" value = expo(value) .\" } .\" line from 0,650 to 3,650 .\" " linear curve" ljust at 1,650 .\" " exponential curve" ljust at 1,600 .\" times at 1,600 .\" label top "Exponential curves: growth over time (7%)" up -.2 .\" .G2