-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup crank for performance tests (#2091)
* Configure crank benchmarks * Add benchmark instructions to docs * Update docs * Update project and solution to fix builds in crank agent * Run benchmarks against other branches * Fix PerformanceBuild.ps1 * Fix issues * Remove obsolete log statement * Address review comments * Fix whitespace
- Loading branch information
Showing
21 changed files
with
338 additions
and
1,107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
|
||
variables: | ||
# set to true to run benchmarks against master branch of main/official repo | ||
base: false | ||
# the branch of the official repo against which to run the benchmarks | ||
baseBranch: master | ||
# this script sets the source for the benchmarks to either the official repo | ||
# or the local directory based on the base variable | ||
setSourceScript: | | ||
if (job.variables && job.variables.base && job.variables.base.toString() === 'true') { | ||
const branch = (job.variables && job.variables.baseBranch && job.variables.baseBranch.toString()) || 'master'; | ||
console.log('Run benchmarks against official repository branch', branch); | ||
job.source.repository = 'https://github.com/OData/odata.net'; | ||
job.source.branchOrCommit = branch; | ||
} | ||
else { | ||
console.log('Run benchmarks against local repository'); | ||
job.source.localFolder = '.'; | ||
} | ||
jobs: | ||
components: | ||
source: | ||
project: test/PerformanceTests/ComponentTests/Microsoft.OData.Performance.ComponentTests.csproj | ||
variables: | ||
filter: "*" | ||
jobType: short | ||
base: "{{base}}" | ||
baseBranch: "{{baseBranch}}" | ||
arguments: "--job {{jobType}} --filter {{filter}} --memory" | ||
options: | ||
benchmarkDotNet: true | ||
onConfigure: | ||
- "{{setSourceScript}}" | ||
service: | ||
source: | ||
project: test/PerformanceTests/ServiceTests/Microsoft.OData.Performance.ServiceTests.csproj | ||
variables: | ||
filter: "*" | ||
jobType: short | ||
base: "{{base}}" | ||
baseBranch: "{{baseBranch}}" | ||
framework: netcoreapp3.1 | ||
arguments: "--job {{jobType}} --filter {{filter}} --memory" | ||
options: | ||
benchmarkDotNet: true | ||
onConfigure: | ||
- "{{setSourceScript}}" | ||
|
||
scenarios: | ||
Reader: | ||
application: | ||
job: components | ||
variables: | ||
filter: "*ODataReader*" | ||
Writer: | ||
application: | ||
job: components | ||
variables: | ||
filter: "*ODataWriter*" | ||
UriParser: | ||
application: | ||
job: component | ||
variables: | ||
filter: "*UriParser*" | ||
Components: | ||
application: | ||
job: components | ||
variables: | ||
filter: "*" | ||
Service: | ||
application: | ||
job: service | ||
variables: | ||
filter: "*" | ||
|
||
profiles: | ||
local: | ||
jobs: | ||
application: | ||
endpoints: | ||
- http://localhost:5010 |
Oops, something went wrong.