-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplottingMultipleLatencyQuantiles.R
52 lines (33 loc) · 2.29 KB
/
plottingMultipleLatencyQuantiles.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
startingThread=51
endingThread=100
latencyQuantiles=c(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.95, 0.99)
numValidationRuns=10
numSampleSets=numValidationRuns
# userByEmail
queryType="userByEmail"
basePathValidationStats="/work/ksauer/2.23.10-userByEmail-experiment"
basePathPredictedStats=basePathValidationStats
getPredictedQueryLatencyMultipleQuantiles(queryType, numSampleSets, basePathValidationStats, basePathPredictedStats, latencyQuantiles)
getMultipleValidationLatencyQuantiles(startingThread, endingThread, basePathValidationStats, numValidationRuns, latencyQuantiles)
plotPredictionErrorMultipleQuantiles(basePathValidationStats, basePathPredictedStats, queryType, latencyQuantiles)
# thoughtstream
queryType="thoughtstream"
basePathValidationStats="/work/ksauer/2.12.10-thoughtstream-experiment"
basePathPredictedStats=basePathValidationStats
getPredictedQueryLatencyMultipleQuantiles(queryType, numSampleSets, basePathValidationStats, basePathPredictedStats, latencyQuantiles)
getMultipleValidationLatencyQuantiles(startingThread, endingThread, basePathValidationStats, numValidationRuns, latencyQuantiles)
plotPredictionErrorMultipleQuantiles(basePathValidationStats, basePathPredictedStats, queryType, latencyQuantiles)
# thoughtsByHashTag
queryType="thoughtsByHashTag"
basePathValidationStats="/work/ksauer/3.8.10-thoughtsByHashTag-experiment"
basePathPredictedStats=basePathValidationStats
getPredictedQueryLatencyMultipleQuantiles(queryType, numSampleSets, basePathValidationStats, basePathPredictedStats, latencyQuantiles)
getMultipleValidationLatencyQuantiles(startingThread, endingThread, basePathValidationStats, numValidationRuns, latencyQuantiles)
plotPredictionErrorMultipleQuantiles(basePathValidationStats, basePathPredictedStats, queryType, latencyQuantiles)
# userByName
queryType="userByName"
basePathValidationStats="/work/ksauer/2.23.10-userByName-experiment"
basePathPredictedStats=basePathValidationStats
getPredictedQueryLatencyMultipleQuantiles(queryType, numSampleSets, basePathValidationStats, basePathPredictedStats, latencyQuantiles)
getMultipleValidationLatencyQuantiles(startingThread, endingThread, basePathValidationStats, numValidationRuns, latencyQuantiles)
plotPredictionErrorMultipleQuantiles(basePathValidationStats, basePathPredictedStats, queryType, latencyQuantiles)