forked from aspnet/Benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.shade
34 lines (30 loc) · 1.01 KB
/
makefile.shade
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
var AUTHORS='Microsoft Open Technologies, Inc.'
use-standard-lifecycle
k-standard-goals
#build-compile target='compile'
@{
var projectFiles = Files
.Include("src/**/project.json")
.Include("experimental/**/project.json")
.ToList();
projectFiles.ForEach(projectFile => DotnetBuild(projectFile, E("Configuration"), E("KOREBUILD_BUILD_FRAMEWORK")));
}
#benchmark-tests .compile
@{
var sql = string.IsNullOrEmpty(E("BENCHMARK_SQL")) ? string.Empty : "-q " + E("BENCHMARK_SQL");
var scenarios = new string[]
{
"-n plaintext",
"-n plaintext -f Benchmarks.PassthroughConnectionFilter",
"-n plaintext -m https",
"-n json",
"-n json -f Benchmarks.PassthroughConnectionFilter",
"-n json -m https",
"-n mvcplaintext",
"-n mvcjson"
};
foreach (var scenario in scenarios) {
Dotnet(String.Format("-v run -- {0} -s {1} -c {2} {3}", scenario, E("BENCHMARK_SERVER"), E("BENCHMARK_CLIENT"), sql),
"src/BenchmarksDriver");
}
}