forked from aspnet/Benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson.benchmarks.yml
More file actions
103 lines (92 loc) · 2.71 KB
/
json.benchmarks.yml
File metadata and controls
103 lines (92 loc) · 2.71 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Examples:
# --config plaintext.benchmarks.yml --scenario plaintext --profile aspnet-physical
# --config benchmarks.compose.yml --scenario fortunes --profile aspnet-physical
imports:
- https://raw.githubusercontent.com/dotnet/crank/main/src/Microsoft.Crank.Jobs.Wrk/wrk.yml
- https://raw.githubusercontent.com/dotnet/crank/main/src/Microsoft.Crank.Jobs.HttpClient/httpclient.yml
- https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/aspnet.profiles.yml
variables:
serverPort: 5000
serverScheme: http
jobs:
aspnetbenchmarks:
source:
repository: https://github.com/aspnet/benchmarks.git
branchOrCommit: main
project: src/Benchmarks/Benchmarks.csproj
readyStateText: Application started.
variables:
protocol: http
server: Kestrel
transport: Sockets
scenario: plaintext
database: ''
arguments: "--nonInteractive true --scenarios {{scenario}} --urls {{serverScheme}}://{{serverAddress}}:{{serverPort}} --server {{server}} --kestrelTransport {{transport}} --protocol {{protocol}} {% if database.size > 0 %} --database {{ database }} {% endif %}"
mapaction:
source:
repository: https://github.com/aspnet/Benchmarks.git
branchOrCommit: main
project: src/BenchmarksApps/MapAction/MapAction.csproj
readyStateText: Application started.
arguments: "--urls {{serverScheme}}://{{serverAddress}}:{{serverPort}}"
jsonbenchmarks:
source:
repository: https://github.com/aspnet/benchmarks.git
branchOrCommit: main
project: src/BenchmarksApps/Json/Json.csproj
readyStateText: Application started.
variables:
singleStringJsonSize: 500
arguments: "--urls {{serverScheme}}://{{serverAddress}}:{{serverPort}} --jsonsize {{singleStringJsonSize}}"
scenarios:
json:
application:
job: aspnetbenchmarks
variables:
scenario: json
load:
job: wrk
variables:
presetHeaders: json
path: /json
https:
application:
job: aspnetbenchmarks
variables:
scenario: json
serverScheme: https
protocol: https
load:
job: wrk
variables:
presetHeaders: json
path: /json
serverScheme: https
mvc:
application:
job: aspnetbenchmarks
variables:
scenario: mvcjson
load:
job: wrk
variables:
path: /mvc/json
presetHeaders: json
mapaction:
application:
job: mapaction
load:
job: wrk
variables:
path: /json
presetHeaders: json
json_middleware:
application:
job: jsonbenchmarks
variables:
scenario: json
load:
job: wrk
variables:
path: /json
presetHeaders: json