-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsend-to-perflab.sh
executable file
·52 lines (45 loc) · 1.48 KB
/
send-to-perflab.sh
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
#!/usr/bin/env bash
scriptroot="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
driverproject="$scriptroot/benchmarks/src/BenchmarksDriver/BenchmarksDriver.csproj"
client=
server=
if [[ -z "$client" ]] || [[ -z "$server" ]]; then
echo "specify client and server in $BASH_SOURCE"
exit 1
fi
crossgen2Arguments=
if [ "$1" == "crossgen2" ]; then
echo "Using crossgen2"
crossgen2Arguments="--build-arg /p:UseCrossgen2=true --build-arg /p:UseTibcData=true"
fi
# clone benchmarks repo
if [[ ! -e "$driverproject" ]]; then
git clone https://github.com/aspnet/benchmarks
fi
dotnet run -p "$driverproject" -- \
--source src \
--client "$client" \
--server "$server" \
--project-file ApiTemplate/ApiTemplate.csproj \
--self-contained \
--sdk 3.0.100-rc1-014176 \
--path weatherforecast \
--aspnetcoreversion 3.0 \
--runtimeversion 3.0 \
--warmup 1 \
--duration 2 \
--build-arg "/p:SelfContained=true" \
--build-arg "/p:PublishTrimmed=true" \
--build-arg "/p:LinkAggressively=true" \
--build-arg "/p:UsePublishFilterList=true" \
--build-arg "/p:UseStaticHost=true" \
--build-arg "/p:PublishReadyToRun=true" \
--display-output \
--iterations 1 \
--collect-counters \
--env "COMPlus_gcServer=1" \
$crossgen2Arguments
# --fetch \
# --collect-startup \
# --collect-trace \
# --verbose (to show all client/server communication)