Skip to content

Commit 1e3f21f

Browse files
more
1 parent 5b3fa6a commit 1e3f21f

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

performance/SqlTriggerBindingPerformanceTestBase.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ public class SqlTriggerBindingPerformanceTestBase : SqlTriggerBindingIntegration
1111
[IterationCleanup]
1212
public void IterationCleanup()
1313
{
14-
// Disable change tracking while cleaning up so we start off fresh for the next iteration
15-
this.SetChangeTrackingForTable("Products", false);
1614
// Delete all rows in Products table after each iteration so we start fresh each time
1715
this.ExecuteNonQuery("TRUNCATE TABLE Products");
1816
// Clear the leases table, otherwise we may end up getting blocked by leases from a previous run
@@ -31,7 +29,6 @@ FETCH cmds INTO @cmd
3129
END
3230
CLOSE cmds;
3331
DEALLOCATE cmds");
34-
this.SetChangeTrackingForTable("Products", true);
3532
}
3633

3734
[GlobalCleanup]

performance/SqlTriggerPerformance_Overrides.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ namespace Microsoft.Azure.WebJobs.Extensions.Sql.Performance
1212
[MemoryDiagnoser]
1313
public class SqlTriggerPerformance_Overrides : SqlTriggerBindingPerformanceTestBase
1414
{
15-
// [Params(1, 10, 100, 500)]
16-
[Params(1, 10)]
15+
[Params(1, 10, 100, 500)]
1716
public int PollingIntervalMs;
1817

19-
[Params(500, 1000)]
20-
// [Params(500, 1000, 2000)]
18+
[Params(500, 1000, 2000)]
2119
public int BatchSize;
2220

2321
[GlobalSetup]
@@ -36,9 +34,9 @@ public void GlobalSetup()
3634
[Benchmark]
3735
[Arguments(0.1)]
3836
[Arguments(0.5)]
39-
//[Arguments(1)]
40-
//[Arguments(5)]
41-
// [Arguments(10)]
37+
[Arguments(1)]
38+
[Arguments(5)]
39+
[Arguments(10)]
4240
public async Task Run(double numBatches)
4341
{
4442
int count = (int)(numBatches * this.BatchSize);

0 commit comments

Comments
 (0)