forked from kragen/shootout
-
Notifications
You must be signed in to change notification settings - Fork 1
/
my.linux.ini
executable file
·224 lines (126 loc) · 4.44 KB
/
my.linux.ini
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# The Computer Language Benchmarks Game
# $Id: my.linux.ini,v 1.6 2010-03-09 21:03:51 igouy-guest Exp $
;;; SECTIONS
; [measure] [dirs] [filters] [alias] [build] [tools] [commandlines]
;;; TEST SPECIFIC SECTIONS
; [testrange] [testdata] [outputcheck] [ndiff_outputcheck]
[measure]
; how many repeated measurements at the same [testrange] value?
runs = 3
; repeat measurements at every [testrange] value
; or just the largest? (True or False)
repeatevery = False
; how many seconds before we timeout a program?
maxtime = 300
; only do repeated measurements for [testrange] values which
; took less than cutoff seconds
cutoff = 120
logfilemax = 102400
delay = 0.2 ; memory sampling delay for linux, not used for win32
;;; SITE SPECIFIC ====================
[dirs]
;;; THESE 7 MUST MATCH WHERE YOU INSTALLED bencher
; 1) MUST set local root
root = ~/bencher/tmp/
; 2) root for source code directories of programs that should be measured
src = ~/bencher/programs/
; 3) makefile
makefile = ~/bencher/makefiles/my.linux.Makefile
; 4) bencher
nano = ~/bencher/
; 5) if not empty, somewhere all csv summary data files should be put
dat_sweep = ~/bencher/summary/
; 6) if not empty, somewhere all source code markup should be put
code_sweep = ~/bencher/run_markup/
; 7) if not empty, somewhere all program log text files should be put
log_sweep = ~/bencher/run_logs/
[filters]
; ONLYDIRS explicitly listed are searched for source code files
onlydirs =
nbody
regexdna
; ALLOW these helper file extensions to be available unchanged
; from the working directory - they will never be measured
allow =
; ONLY measure files with these extensions
; if there are none, measure files with any extension not ALLOWed or IGNOREd
only =
; IGNORE files with these extensions, if there are no ONLY extensions
ignore =
txt
[alias]
; x=y z - additionally measure source file x with implementations y and z
python = compiledpython
perl = compiledperl
[build]
make =
compiledpython compiledperl
[tools]
; some of these need to be available to MAKE as well as substituted
; in commandlines, so we'll export them as shell variables
PYTHON = /usr/bin/python
JDKRUN = /usr/bin/java
JDKC = /usr/bin/javac
GCC = /usr/bin/gcc
PERL = /usr/local/bin/perl
PERLCC = /usr/local/bin/perlcc
[commandlines]
; commandlines are split on spaces, so "a b" and 'a b' will be split
; %X %T %B %I %A in commandlines are replaced like this:
;
; nbody.python-4.python %X = nbody.python-4.python
; nbody.python-4.python %T = nbody
; nbody.python-4.python %B = nbody.python-4
; nbody.python-4.python %I = 4
;
; %A = [testrange] value or 0 when the program takes input from stdin
python = $PYTHON %X %A
compiledpython = $PYTHON %B.pyo %A
perl = $PERL %X %A
compiledperl = $PERLCC %B %A
; (For multiprocessing make sure the extension is .py)
;python = $PYTHON -O %B.py %A
java = $JDKRUN $JDKFLAGS -server %T %A
javaxint = $JDKRUN $JDKFLAGS -server -Xint %T %A
;;; TEST SPECIFIC ====================
[testrange]
; One or more input values, programs will be run at least once
; with each input value replacing %A in the command line.
;
; Or when there's [testdata] for programs the input value
; makes up part of the filename - the file contents will be
; redirected to stdin.
;
; In this example, the input file for regexdna should be named
; regexdna-input10000.txt
; and should be located in
; bencher/tmp/regexdna
nbody = 10000 20000 30000 40000 50000
regexdna = 10000
[testdata]
knucleotide = ../knucleotide-input.txt
regexdna = ../regexdna-input.txt
revcomp = ../revcomp-input.txt
[outputcheck]
; Program output is usually checked against an "expected" output
; file. If there's no "expected" output file then the output of the
; first program measured for that test becomes the "expected" output
; - so make sure that output is correct!
; The default output check uses GNU diff.
; If GNU diff isn't found the default output check uses filecmp.cmp
;
; Other options are:
; prevent output check, use GNU cmp, use ndiff
; prevent output being checked for the named test
notchecked =
; nbody chameneosredux
; check binary output with cmp for the named test
binarycmp =
; mandelbrot
[ndiff_outputcheck]
; check output with ndiff and these parameters for the named test
chameneosredux = -fields 2-10
nbody = -abserr 1.0e-8
; ENVIRONMENT for specific tests
; some of these need to be available to MAKE as well as substituted
; in commandlines, so we'll export them as shell variables