Skip to content

Commit 9f1699b

Browse files
Delete performance/longrunning tests (#1143)
Co-authored-by: Wojciech Nagórski <[email protected]>
1 parent 004b57a commit 9f1699b

File tree

6 files changed

+2
-561
lines changed

6 files changed

+2
-561
lines changed

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ build:
99

1010
test_script:
1111
- cmd: >-
12-
vstest.console /logger:Appveyor src\Renci.SshNet.Tests\bin\Debug\net462\Renci.SshNet.Tests.dll /TestCaseFilter:"TestCategory!=integration&TestCategory!=LongRunning" --blame
12+
vstest.console /logger:Appveyor src\Renci.SshNet.Tests\bin\Debug\net462\Renci.SshNet.Tests.dll /TestCaseFilter:"TestCategory!=integration" --blame
1313
14-
vstest.console /logger:Appveyor src\Renci.SshNet.Tests\bin\Debug\net7.0\Renci.SshNet.Tests.dll /TestCaseFilter:"TestCategory!=integration&TestCategory!=LongRunning" --blame
14+
vstest.console /logger:Appveyor src\Renci.SshNet.Tests\bin\Debug\net7.0\Renci.SshNet.Tests.dll /TestCaseFilter:"TestCategory!=integration" --blame

src/Renci.SshNet.Tests/Classes/Common/ASCIIEncodingTest.cs

Lines changed: 0 additions & 241 deletions
This file was deleted.

src/Renci.SshNet.Tests/Classes/Common/BigIntegerTest.cs

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//#define FEATURE_NUMERICS_BIGINTEGER
1212

1313
using System;
14-
using System.Diagnostics;
1514
using System.Globalization;
1615
using System.Threading;
1716
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -1559,61 +1558,6 @@ public void Bug16526()
15591558
}
15601559
}
15611560

1562-
[TestMethod]
1563-
[TestCategory("LongRunning")]
1564-
[TestCategory("Performance")]
1565-
public void ToArray_Performance()
1566-
{
1567-
const int loopCount = 100000000;
1568-
var bigInteger = new BigInteger(Huge_a);
1569-
1570-
var stopWatch = new Stopwatch();
1571-
1572-
GC.Collect();
1573-
_ = GC.WaitForFullGCComplete();
1574-
1575-
stopWatch.Start();
1576-
1577-
for (var i = 0; i < loopCount; i++)
1578-
{
1579-
_ = bigInteger.ToByteArray();
1580-
}
1581-
1582-
GC.Collect();
1583-
_ = GC.WaitForFullGCComplete();
1584-
1585-
stopWatch.Stop();
1586-
1587-
Console.WriteLine(stopWatch.ElapsedMilliseconds);
1588-
}
1589-
1590-
[TestMethod]
1591-
[TestCategory("LongRunning")]
1592-
[TestCategory("Performance")]
1593-
public void Ctor_ByteArray_Performance()
1594-
{
1595-
const int loopCount = 100000000;
1596-
1597-
var stopWatch = new Stopwatch();
1598-
1599-
GC.Collect();
1600-
_ = GC.WaitForFullGCComplete();
1601-
1602-
stopWatch.Start();
1603-
1604-
for (var i = 0; i < loopCount; i++)
1605-
{
1606-
_ = new BigInteger(Huge_a);
1607-
}
1608-
1609-
GC.Collect();
1610-
_ = GC.WaitForFullGCComplete();
1611-
1612-
stopWatch.Stop();
1613-
1614-
Console.WriteLine(stopWatch.ElapsedMilliseconds);
1615-
}
1616-
16171561
[TestMethod]
16181562
public void MinusOne()
16191563
{

0 commit comments

Comments
 (0)