-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotnet.yml
More file actions
61 lines (55 loc) · 1.8 KB
/
dotnet.yml
File metadata and controls
61 lines (55 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
imports:
- https://raw.githubusercontent.com/dotnet/crank/main/src/Microsoft.Crank.Jobs.Bombardier/bombardier.yml
- https://github.com/aspnet/Benchmarks/blob/main/scenarios/aspnet.profiles.yml?raw=true
# calculates the allocations per request by using results from application and load
defaultScript:
- |
var allocations = benchmarks.jobs.application.results["runtime-counter/alloc-rate"]
var rps = benchmarks.jobs.load.results["http/requests"];
benchmarks.jobs.application.results["runtime-counter/alloc-per-request"] = allocations / rps;
results: # creates results from measurements
- name: runtime-counter/alloc-rate/avg
measurement: runtime-counter/alloc-rate
description: Avg Allocation Rate (B/sec)
format: n0
aggregate: avg
reduce: sum
description: 90th Allocation Rate (B/sec)
format: n0
aggregate: percentile90
reduce: sum
- name: runtime-counter/allow-per-request
measurement: alloc-per-request
description: Avg Allocations (/request)
format: n0
aggregate: max
reduce: max
jobs:
server:
source:
repository: https://github.com/Azure/azure-functions-host
branchOrCommit: dev
project: src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
readyStateText: Application started.
arguments: "--urls http://*:5000"
environmentVariables:
AzureWebJobsSecretStorageType: Files
AzureWebJobsScriptRoot: ../../../sample/CSharpBenchmark
options:
collectCounters: true
displayBuild: true
displayOutput: true
buildArguments:
- "/p:PublishReadyToRun=false"
scenarios:
functions-baseline:
application:
job: server
source:
branchOrCommit: dev
load:
job: bombardier
variables:
#https: true
serverPort: 5000
path: "/api/HttpTriggerAnon?name=bob"