71 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| .G1
 | |
| copy "legend.grap"
 | |
| frame invis ht 3 wid 4 left solid bot solid
 | |
| coord y 0,300
 | |
| ticks left out from 0 to 300 by 50
 | |
| ticks bot out at 50000 "50,000", 100000 "100,000", 150000 "150,000", 200000 "200,000", 250000 "250,000"
 | |
| 
 | |
| label left "Request duration with" unaligned "an index (ns)" "(Median)" left 0.8
 | |
| label bot "Number of cars in the database" down 0.1
 | |
| 
 | |
| oblru1 = oblru5 = oblru10 = oblru20 = 0 # old bullets
 | |
| cblru1 = cblru5 = cblru10 = cblru20 = 0 # current bullets
 | |
| 
 | |
| legendxleft  = 120000
 | |
| legendxright = 180000
 | |
| legendyup    = 120
 | |
| legendydown  = 20
 | |
| 
 | |
| boite(legendxleft,legendxright,legendyup,legendydown)
 | |
| legend_common(legendxleft,legendxright,legendyup,legendydown)
 | |
| 
 | |
| copy "../data/lru_index.d" thru X
 | |
| 	cx = $1*5
 | |
| 
 | |
| 	y_scale = 1
 | |
| 
 | |
| 	## lru1 lru5 lru10 lru20
 | |
| 	#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
 | |
| 
 | |
| 	cblru1  = $3/y_scale
 | |
| 	cblru5  = $6/y_scale
 | |
| 	cblru10 = $9/y_scale
 | |
| 	cblru20 = $12/y_scale
 | |
| 
 | |
| .gcolor red
 | |
| 	if (oblru1 > 0) then {line from cx,cblru1 to ox,oblru1}
 | |
| .gcolor
 | |
| .gcolor green
 | |
| 	if (oblru5 > 0) then {line from cx,cblru5 to ox,oblru5}
 | |
| .gcolor
 | |
| 	if (oblru10 > 0) then {line from cx,cblru10 to ox,oblru10}
 | |
| .gcolor pink
 | |
| 	if (oblru20 > 0) then {line from cx,cblru20 to ox,oblru20}
 | |
| .gcolor
 | |
| 
 | |
| 	oblru1 = cblru1
 | |
| 	oblru5 = cblru5
 | |
| 	oblru10 = cblru10
 | |
| 	oblru20 = cblru20
 | |
| 	ox = cx
 | |
| 
 | |
| 	# lru1 lru5 lru10 lru20
 | |
| .gcolor red
 | |
| 	bullet at cx,cblru1
 | |
| .gcolor
 | |
| .gcolor green
 | |
| 	bullet at cx,cblru5
 | |
| .gcolor
 | |
| 	bullet at cx,cblru10
 | |
| .gcolor pink
 | |
| 	bullet at cx,cblru20
 | |
| .gcolor
 | |
| X
 | |
| .G2
 |