static void TestClosedXML2() { // 运行速度很慢,内存占用越往后也越大 ClosedXmlTest ct = new ClosedXmlTest(); ct.DoTest_GenerateThenAttach(); ct = null; }
static void TestClosedXML1() { // Memory usage will exceed 3000 MB, drop quickly to 60 MB after gc done // 运行时间 100 秒,文件大小 23 MB ClosedXmlTest ct = new ClosedXmlTest(); ct.DoTest_GenerateDirectly(); ct = null; }