@@ -73,11 +73,11 @@ public void ExportCsv(Mode mode, int cacheSize)
73
73
74
74
public void ExportPlot ( Mode mode , int cacheSize )
75
75
{
76
- var columns = new List < string > ( ) ;
76
+ var columns = new List < int > ( ) ;
77
77
78
78
for ( int i = 1 ; i < resultTable . Columns . Count ; i ++ )
79
79
{
80
- columns . Add ( resultTable . Columns [ i ] . ColumnName ) ;
80
+ columns . Add ( int . Parse ( resultTable . Columns [ i ] . ColumnName ) ) ;
81
81
}
82
82
83
83
List < GenericChart . GenericChart > charts = new List < GenericChart . GenericChart > ( ) ;
@@ -91,7 +91,7 @@ public void ExportPlot(Mode mode, int cacheSize)
91
91
rowData . Add ( double . Parse ( row [ i ] . ToString ( ) ) * 1_000_000 ) ;
92
92
}
93
93
94
- var chart = Chart . Line < string , double , string > ( columns , rowData , Name : name , MarkerColor : MapColor ( name ) ) ;
94
+ var chart = Chart . Line < int , double , string > ( columns , rowData , Name : name , MarkerColor : MapColor ( name ) ) ;
95
95
charts . Add ( chart ) ;
96
96
97
97
var combined = Chart . Combine ( charts ) ;
@@ -109,13 +109,13 @@ public string MapTitle(Mode mode, int cacheSize)
109
109
switch ( mode )
110
110
{
111
111
case Mode . Read :
112
- return $ "Read throughput (100% cache hit) for size { cacheSize } ";
112
+ return $ "Read throughput (100% cache hit)";
113
113
case Mode . ReadWrite :
114
- return $ "Read + Write throughput for size { cacheSize } ";
114
+ return $ "Read + Write throughput";
115
115
case Mode . Update :
116
- return $ "Update throughput for size { cacheSize } ";
116
+ return $ "Update throughput";
117
117
case Mode . Evict :
118
- return $ "Eviction throughput (100% cache miss) for size { cacheSize } ";
118
+ return $ "Eviction throughput (100% cache miss)";
119
119
default :
120
120
return $ "{ mode } { cacheSize } ";
121
121
}
@@ -127,13 +127,13 @@ public Color MapColor(string name)
127
127
{
128
128
case "ClassicLru" :
129
129
return Plotly . NET . Color . fromKeyword ( Plotly . NET . ColorKeyword . Limegreen ) ;
130
- case "MemryCache " :
130
+ case "MemoryCache " :
131
131
return Plotly . NET . Color . fromKeyword ( Plotly . NET . ColorKeyword . FireBrick ) ;
132
- case "FsTConcLRU " :
132
+ case "FastConcurrentLru " :
133
133
return Plotly . NET . Color . fromKeyword ( Plotly . NET . ColorKeyword . Silver ) ;
134
- case "ConcurrLRU " :
134
+ case "ConcurrentLru " :
135
135
return Plotly . NET . Color . fromKeyword ( Plotly . NET . ColorKeyword . RoyalBlue ) ;
136
- case "ConcurrLFU " :
136
+ case "ConcurrentLfu " :
137
137
return Plotly . NET . Color . fromRGB ( 255 , 192 , 0 ) ;
138
138
default :
139
139
return Plotly . NET . Color . fromKeyword ( Plotly . NET . ColorKeyword . FireBrick ) ;
0 commit comments