-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrun-benchmarks.sh
29 lines (24 loc) · 949 Bytes
/
run-benchmarks.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
#!/bin/bash
set -e
curl -o dotnet-install.sh https://dot.net/v1/dotnet-install.sh
mkdir dotnet
chmod u+x ./dotnet-install.sh
./dotnet-install.sh --install-dir $(pwd)/dotnet -v $SDK_VERSION
rm $(pwd)/dotnet-install.sh
export PATH="$(pwd)/dotnet:$PATH"
echo 'installed sdks:'
dotnet --list-sdks
echo "-------------------------------------------------"
echo 'cpu info'
lscpu
echo "-------------------------------------------------"
cd perf/gfoidl.Base64.Benchmarks
dotnet build -c Release
cd bin/Release/netcoreapp3.0
dotnet gfoidl.Base64.Benchmarks.dll --list tree
dotnet gfoidl.Base64.Benchmarks.dll -f *Base64EncoderBenchmarks*
dotnet gfoidl.Base64.Benchmarks.dll -f *Base64UrlEncoderBenchmarks*
dotnet gfoidl.Base64.Benchmarks.dll -f *DecodeStringBenchmark*
dotnet gfoidl.Base64.Benchmarks.dll -f *DecodeUtf8Benchmark*
dotnet gfoidl.Base64.Benchmarks.dll -f *EncodeStringBenchmark*
dotnet gfoidl.Base64.Benchmarks.dll -f *EncodeUtf8Benchmark*