-
Notifications
You must be signed in to change notification settings - Fork 9
/
bench-config.sh
97 lines (80 loc) · 2.46 KB
/
bench-config.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
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
#!/usr/bin/env bash
# Customization options
bench_config () {
BENCH_REPORT_DIR=bench-report
BENCHMARK_PACKAGE_NAME=streaming-benchmarks
BENCHMARK_PACKAGE_VERSION=0.3.0
USE_GAUGE=0
DEFAULT_FIELDS="allocated cputime"
}
#------------------------------------------------------------------------------
# benchmark groups
#------------------------------------------------------------------------------
bench_targets () {
INDIVIDUAL_TARGETS="\
Streamly \
StreamlyPure \
List \
Streaming \
Machines \
Pipes \
Conduit \
Drinkery \
VectorStreams \
ByteStringLazy"
}
#------------------------------------------------------------------------------
# RTS options based on the benchmark executable name and benchmark name
#------------------------------------------------------------------------------
bench_rts_options () {
local exe_name
local bench_name
exe_name="$1"
bench_name="$2"
# All benchmarks
case "$bench_name" in
*) echo -n "-K36K -M16M" ;;
esac
echo -n " "
case "$exe_name" in
Conduit) echo -n "-M256M" ;;
Machines) echo -n "-K16M -M256M" ;;
Drinkery) echo -n "-K256M -M128M" ;;
Pipes) echo -n "-K1M -M64M" ;;
Streaming) echo -n "-K256K" ;;
VectorStreams) echo -n "-K256K -M256M" ;;
*) echo -n "" ;;
esac
echo -n " "
# Based on specific benchmark
# XXX Note: for tasty-bench we replace the "." separator in the
# benchmark names with "/" for matching with this. It may not work
# reliably if the benchmark name already contains ".".
case "$bench_name" in
*/iterated/*) echo -n "-K4M" ;;
*/toList) echo -n "-K16M -M128M" ;;
*) echo -n "" ;;
esac
}
#------------------------------------------------------------------------------
# Speed options
#------------------------------------------------------------------------------
bench_speed_options () {
local exe_name
local bench_name
exe_name="$1"
bench_name="$2"
case "$exe_name" in
#Prelude.Concurrent) set_super_quick_mode ;;
*) echo -n "" ;;
esac
# XXX Note: for tasty-bench we replace the "." separator in the
# benchmark names with "/" for matching with this. It may not work
# reliably if the benchmark name already contains ".".
# Use quick options for benchmarks that take too long
case "$bench_name" in
#Prelude.Parallel/o-n-heap/mapping/mapM) set_super_quick_mode ;;
#Prelude.Parallel/o-n-heap/concat-foldable/*) use_quicker_mode ;;
*) echo -n "" ;;
esac
}