diff --git a/builds/azure-pipelines/performance.yml b/builds/azure-pipelines/performance.yml index 75c36b9b8..9e8049d94 100644 --- a/builds/azure-pipelines/performance.yml +++ b/builds/azure-pipelines/performance.yml @@ -2,7 +2,13 @@ trigger: none pr: none -schedules: [ ] +schedules: + - cron: "0 0 * * *" + displayName: Mon-Fri at Midnight + branches: + include: + - release/trigger + always: true variables: configuration: 'Release' diff --git a/performance/Microsoft.Azure.WebJobs.Extensions.Sql.Performance.csproj b/performance/Microsoft.Azure.WebJobs.Extensions.Sql.Performance.csproj index 1464fcf64..de9a4c2d4 100644 --- a/performance/Microsoft.Azure.WebJobs.Extensions.Sql.Performance.csproj +++ b/performance/Microsoft.Azure.WebJobs.Extensions.Sql.Performance.csproj @@ -16,6 +16,11 @@ + + <_DatabaseItems Include="..\samples\Database\**\*.*" /> + + + <_CSharpCopyItems Include="..\samples\samples-csharp\bin\$(Configuration)\$(TargetFramework)\**\*.*" /> @@ -30,6 +35,11 @@ SqlExtensionSamples\%(RecursiveDir)\%(Filename)%(Extension) True + + PreserveNewest + Database\%(RecursiveDir)\%(Filename)%(Extension) + True + \ No newline at end of file diff --git a/performance/README.md b/performance/README.md index f40ec53dd..3c4e4652a 100644 --- a/performance/README.md +++ b/performance/README.md @@ -1,16 +1,31 @@ # Running Performance Tests ## Pre-requisites + The performance tests are based on the IntegrationTestBase class. Follow the instructions to set up the pre-requisites for integration tests [here](../test/README.md#running-integration-tests). ## Run + The performance tests use BenchmarkDotNet to benchmark performance for input and output bindings. Run the tests from the terminal. -``` + +### Run all tests + +```bash cd performance dotnet run -c Release ``` +### Run subset of tests + +You can also pass in an argument to the test runner to run only a subset of tests. Each argument corresponds to a category of tests (each contained in a single class). See [SqlBindingBenchmark](./SqlBindingBenchmarks.cs) for the full list of arguments. + +```bash +cd performance +dotnet run -c Release input +``` + ## Results + The test results will be generated in the BenchmarkDotNet.Artifacts folder.