@@ -57,33 +57,33 @@ public void TemplateBasiTest()
57
57
}
58
58
59
59
//[Fact]
60
- public void PerformanceTest ( )
61
- {
62
- // MiniExcel
63
- {
64
- var path = Path . Combine ( Path . GetTempPath ( ) , $ "{ Guid . NewGuid ( ) . ToString ( ) } .xlsx") ;
65
- var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill.xlsx" ;
66
- var value = new
67
- {
68
- employees = Enumerable . Range ( 1 , 1000000 ) . Select ( s => new { name = "Jack" , department = "HR" } )
69
- } ;
70
- MiniExcel . SaveAsByTemplate ( path , templatePath , value ) ;
71
- }
72
-
73
- // ClosexXml.Report
74
- {
75
- var path = Path . Combine ( Path . GetTempPath ( ) , $ "{ Guid . NewGuid ( ) . ToString ( ) } .xlsx") ;
76
- var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill_ClosedXML_Report.xlsx" ;
77
- var template = new ClosedXML . Report . XLTemplate ( templatePath ) ;
78
- var value = new
79
- {
80
- employees = Enumerable . Range ( 1 , 1000000 ) . Select ( s => new { name = "Jack" , department = "HR" } )
81
- } ;
82
- template . AddVariable ( value ) ;
83
- template . Generate ( ) ;
84
- template . SaveAs ( path ) ;
85
- }
86
- }
60
+ // public void PerformanceTest()
61
+ // {
62
+ // // MiniExcel
63
+ // {
64
+ // var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid().ToString()}.xlsx");
65
+ // var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill.xlsx";
66
+ // var value = new
67
+ // {
68
+ // employees = Enumerable.Range(1, 1000000).Select(s => new { name = "Jack", department = "HR" })
69
+ // };
70
+ // MiniExcel.SaveAsByTemplate(path, templatePath, value);
71
+ // }
72
+
73
+ // // ClosexXml.Report
74
+ // {
75
+ // var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid().ToString()}.xlsx");
76
+ // var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill_ClosedXML_Report.xlsx";
77
+ // var template = new ClosedXML.Report.XLTemplate(templatePath);
78
+ // var value = new
79
+ // {
80
+ // employees = Enumerable.Range(1, 1000000).Select(s => new { name = "Jack", department = "HR" })
81
+ // };
82
+ // template.AddVariable(value);
83
+ // template.Generate();
84
+ // template.SaveAs(path);
85
+ // }
86
+ // }
87
87
88
88
[ Fact ]
89
89
public void TestIEnumerable ( )
0 commit comments