@@ -44,27 +44,28 @@ static async Task VisualizeInitializeBenchmarks(BenchmarkInfo[] benchmarkInfo)
44
44
Title = null ! , //Set per case
45
45
MainColumn = "Method" ,
46
46
GroupByColumns = [ "Length" , "Sorted" ] ,
47
- PivotProperty = "DataType" ,
47
+ PivotColumn = "DataType" ,
48
48
StatisticColumns = null ! , //Set per case
49
49
ColumnsOrder = [ "Int32" , "String" , "StructInts" , "ClassInts" , "RecordStructInts" , "RecordClassInts" , "StructStrings" , "ClassStrings" , "RecordStructStrings" , "RecordClassStrings" ] ,
50
50
SpectrumStatisticColumn = true ,
51
51
HighlightGroups = true ,
52
52
DividerMode = RenderTableDividerMode . SeparateTables ,
53
53
HtmlWrapMode = HtmlDocumentWrapMode . RichDataTables ,
54
+ Theme = Theme . Light
54
55
} ;
55
56
56
57
options . Title = "Benchmark of Collection Initializing in terms of Execution Time (Mean)" ;
57
58
options . StatisticColumns = [ "Mean" ] ;
58
59
await benchmarkInfo . JoinReportsAndSaveAsHtmlAndImageAsync (
59
60
htmlPath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-Initialize-Mean.html" ) ,
60
- imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-Initialize-Mean.webp " ) ,
61
+ imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-Initialize-Mean.png " ) ,
61
62
options : options ) ;
62
63
63
64
options . Title = "Benchmark of Collection Initializing in terms of Allocation Size" ;
64
65
options . StatisticColumns = [ "Allocated" ] ;
65
66
await benchmarkInfo . JoinReportsAndSaveAsHtmlAndImageAsync (
66
67
htmlPath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-Initialize-Allocated.html" ) ,
67
- imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-Initialize-Allocated.webp " ) ,
68
+ imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-Initialize-Allocated.png " ) ,
68
69
options : options ) ;
69
70
}
70
71
@@ -80,28 +81,29 @@ static async Task VisualizeContainsBenchmarks(BenchmarkInfo[] benchmarkInfo)
80
81
Title = null ! , //Set per case
81
82
MainColumn = "Method" ,
82
83
GroupByColumns = [ "Existed" ] ,
83
- PivotProperty = "DataType" ,
84
+ PivotColumn = "DataType" ,
84
85
StatisticColumns = null ! , //Set per case
85
86
OtherColumnsToSelect = [ "Big O" , "Length" ] ,
86
87
ColumnsOrder = [ "Int32" , "String" , "StructInts" , "ClassInts" , "RecordStructInts" , "RecordClassInts" , "StructStrings" , "ClassStrings" , "RecordStructStrings" , "RecordClassStrings" ] ,
87
88
SpectrumStatisticColumn = true ,
88
89
HighlightGroups = true ,
89
90
DividerMode = RenderTableDividerMode . SeparateTables ,
90
91
HtmlWrapMode = HtmlDocumentWrapMode . RichDataTables ,
92
+ Theme = Theme . Light
91
93
} ;
92
94
93
95
options . Title = "Benchmark of Collection Searching (Contains method) in terms of Execution Time (Mean)" ;
94
96
options . StatisticColumns = [ "Mean" ] ;
95
97
await benchmarkInfo . JoinReportsAndSaveAsHtmlAndImageAsync (
96
98
htmlPath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchContains-Mean.html" ) ,
97
- imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchContains-Mean.webp " ) ,
99
+ imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchContains-Mean.png " ) ,
98
100
options : options ) ;
99
101
100
102
options . Title = "Benchmark of Collection Searching (Contains method) in terms of Allocation Size" ;
101
103
options . StatisticColumns = [ "Allocated" ] ;
102
104
await benchmarkInfo . JoinReportsAndSaveAsHtmlAndImageAsync (
103
105
htmlPath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchContains-Allocated.html" ) ,
104
- imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchContains-Allocated.webp " ) ,
106
+ imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchContains-Allocated.png " ) ,
105
107
options : options ) ;
106
108
}
107
109
@@ -117,28 +119,29 @@ static async Task VisualizeTryGetValueBenchmarks(BenchmarkInfo[] benchmarkInfo)
117
119
Title = null ! , //Set per case
118
120
MainColumn = "Method" ,
119
121
GroupByColumns = [ "Existed" ] ,
120
- PivotProperty = "DataType" ,
122
+ PivotColumn = "DataType" ,
121
123
StatisticColumns = null ! , //Set per case
122
124
OtherColumnsToSelect = [ "Big O" , "Length" ] ,
123
125
ColumnsOrder = [ "Int32" , "String" , "StructInts" , "ClassInts" , "RecordStructInts" , "RecordClassInts" , "StructStrings" , "ClassStrings" , "RecordStructStrings" , "RecordClassStrings" ] ,
124
126
SpectrumStatisticColumn = true ,
125
127
HighlightGroups = true ,
126
128
DividerMode = RenderTableDividerMode . SeparateTables ,
127
129
HtmlWrapMode = HtmlDocumentWrapMode . RichDataTables ,
130
+ Theme = Theme . Light
128
131
} ;
129
132
130
133
options . Title = "Benchmark of Collection Searching (TryGetValue method) in terms of Execution Time (Mean)" ;
131
134
options . StatisticColumns = [ "Mean" ] ;
132
135
await benchmarkInfo . JoinReportsAndSaveAsHtmlAndImageAsync (
133
136
htmlPath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchTryGetValue-Mean.html" ) ,
134
- imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchTryGetValue-Mean.webp " ) ,
137
+ imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchTryGetValue-Mean.png " ) ,
135
138
options : options ) ;
136
139
137
140
options . Title = "Benchmark of Collection Searching (TryGetValue method) in terms of Allocation Size" ;
138
141
options . StatisticColumns = [ "Allocated" ] ;
139
142
await benchmarkInfo . JoinReportsAndSaveAsHtmlAndImageAsync (
140
143
htmlPath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchTryGetValue-Allocated.html" ) ,
141
- imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchTryGetValue-Allocated.webp " ) ,
144
+ imagePath : DirectoryHelper . GetPathRelativeToProjectDirectory ( "docs\\ Benchmark-SearchTryGetValue-Allocated.png " ) ,
142
145
options : options ) ;
143
146
}
144
147
0 commit comments