start using Ignore attribute for performance tests

pull/4449/head
Jan Tattermusch 9 years ago
parent 03c010611b
commit 3ac274f128
  1. 14
      src/csharp/Grpc.Core.Tests/Internal/TimespecTest.cs
  2. 8
      src/csharp/Grpc.Core.Tests/PerformanceTest.cs
  3. 7
      src/csharp/Grpc.IntegrationTesting/RunnerClientServerTest.cs

@ -167,18 +167,18 @@ namespace Grpc.Core.Internal.Tests
() => Timespec.FromDateTime(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Unspecified)));
}
// Test attribute commented out to prevent running as part of the default test suite.
// [Test]
// [Category("Performance")]
[Test]
[Category("Performance")]
[Ignore("Prevent running on Jenkins")]
public void NowBenchmark()
{
// approx Timespec.Now latency <33ns
BenchmarkUtil.RunBenchmark(10000000, 1000000000, () => { var now = Timespec.Now; });
}
// Test attribute commented out to prevent running as part of the default test suite.
// [Test]
// [Category("Performance")]
[Test]
[Category("Performance")]
[Ignore("Prevent running on Jenkins")]
public void PreciseNowBenchmark()
{
// approx Timespec.PreciseNow latency <18ns (when compiled with GRPC_TIMERS_RDTSC)

@ -67,10 +67,10 @@ namespace Grpc.Core.Tests
channel.ShutdownAsync().Wait();
server.ShutdownAsync().Wait();
}
// Test attribute commented out to prevent running as part of the default test suite.
//[Test]
//[Category("Performance")]
[Test]
[Category("Performance")]
[Ignore("Prevent running on Jenkins")]
public void UnaryCallPerformance()
{
var profiler = new BasicProfiler();

@ -75,9 +75,10 @@ namespace Grpc.IntegrationTesting
serverRunner.StopAsync().Wait();
}
// Test attribute commented out to prevent running as part of the default test suite.
//[Test]
//[Category("Performance")]
[Test]
[Category("Performance")]
[Ignore("Prevent running on Jenkins")]
public async Task ClientServerRunner()
{
var config = new ClientConfig

Loading…
Cancel
Save