Skip to content

Commit

Permalink
Adding nightly runs for benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyju committed Jan 7, 2025
1 parent cb0a62c commit 9427a5b
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
38 changes: 38 additions & 0 deletions eng/ci/benchmarkconfigs/hellohttp-net9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
imports:
- https://raw.githubusercontent.com/dotnet/crank/main/src/Microsoft.Crank.Jobs.Bombardier/bombardier.yml

jobs:

server:
sources:
functionshost:
repository: https://github.com/Azure/azure-functions-host
branchOrCommit: dev
project: functionshost/src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
readyStateText: 'Application started.'
environmentVariables:
AzureWebJobsScriptRoot: "C:\\FunctionApps\\HelloHttp9"
FUNCTIONS_WORKER_RUNTIME: dotnet-isolated

scenarios:
hellohttp:
hostruntime:
job: server

load:
job: bombardier
variables:
serverPort: 5000
path: /api/Hello

profiles:
win2022:
variables:
serverAddress: localhost
jobs:
hostruntime:
endpoints:
- http://localhost:5010
load:
endpoints:
- http://localhost:5010
37 changes: 37 additions & 0 deletions eng/ci/host.benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# No triggers for code push to any branch.
trigger: none

# No PR triggers for now
pr: none

schedules:
- cron: "0 21 * * *"
displayName: "Run at 9 PM every night"
always: true

variables:
- name: buildId
value: $(Build.BuildId)
- name: buildNumber
value: $(Build.BuildNumber)
- name: sourceVersion
value: $(Build.SourceVersion)
jobs:
- job: PublishToServiceBus
displayName: "Windows HTTP Tests"
pool: server
steps:
- task: PublishToAzureServiceBus@2
displayName: ".NET9 Hello Http"
inputs:
azureSubscription: Azure-Functions-Host-Perf-internal
serviceBusQueueName: crank-jobs
serviceBusNamespace: azure-functions-host-perf
waitForCompletion: true
useDataContractSerializer: "false"
messageBody: |
{
"name": "crank",
"retries": 1,
"args": [ "--config https://raw.githubusercontent.com/Azure/azure-functions-host/refs/heads/dev/eng/ci/benchmarkconfigs/hellohttp-net9.yml --scenario hellohttp --profile win2022 --load.options.reuseBuild true --description net9hellohttpwin --command-line-property --table HttpBenchmarks --sql SQL_CONNECTION_STRING --chart --no-metadata --no-measurements --property buildId=\"$(buildId)\" --property sourceVersion=\"$(sourceVersion)\" --property buildNumber=\"$(buildNumber)\"" ]
}

0 comments on commit 9427a5b

Please sign in to comment.