make/build-benchmark.xml

changeset 25
f67bf56495ca
parent 21
a7f177d6639c
child 295
1f57afd14cc1
equal deleted inserted replaced
24:2a4769fcd13f 25:f67bf56495ca
28 dir="${octane-test-sys-prop.test.js.roots}" 28 dir="${octane-test-sys-prop.test.js.roots}"
29 excludes="${octane-test-sys-prop.test.js.exclude.list}"> 29 excludes="${octane-test-sys-prop.test.js.exclude.list}">
30 <include name="*.js"/> 30 <include name="*.js"/>
31 </fileset> 31 </fileset>
32 <pathconvert pathsep=" " property="octane-tests" refid="octane-set"/> 32 <pathconvert pathsep=" " property="octane-tests" refid="octane-set"/>
33 <property name="extra-arg" value=""/>
34 </target> 33 </target>
35 34
36 <!-- box2d --> 35 <!-- box2d -->
37 <target name="box2d-init"> 36 <target name="octane-box2d" depends="jar">
38 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/box2d.js"/> 37 <antcall target="run-octane">
39 </target> 38 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/box2d.js"/>
40 39 </antcall>
41 <target name="octane-box2d" depends="jar, box2d-init, octane-verbose"> 40 </target>
41
42 <target name="octane-box2d-v8" depends="jar">
43 <antcall target="run-octane-v8">
44 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/box2d.js"/>
45 </antcall>
46 </target>
47
48 <target name="octane-box2d-rhino" depends="jar">
49 <antcall target="run-octane-rhino">
50 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/box2d.js"/>
51 </antcall>
52 </target>
53
54 <!-- code-load -->
55 <target name="octane-code-load" depends="jar">
56 <antcall target="run-octane">
57 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/code-load.js"/>
58 </antcall>
59 </target>
60
61 <target name="octane-code-load-v8" depends="jar">
62 <antcall target="run-octane-v8">
63 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/code-load.js"/>
64 </antcall>
65 </target>
66
67 <target name="octane-code-load-rhino" depends="jar">
68 <antcall target="run-octane-rhino">
69 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/code-load.js"/>
70 </antcall>
71 </target>
72
73 <!-- crypto -->
74 <target name="octane-crypto" depends="jar">
75 <antcall target="run-octane">
76 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/crypto.js"/>
77 </antcall>
78 </target>
79
80 <target name="octane-crypto-v8" depends="jar">
81 <antcall target="run-octane-v8">
82 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/crypto.js"/>
83 </antcall>
84 </target>
85
86 <target name="octane-crypto-rhino" depends="jar">
87 <antcall target="run-octane-rhino">
88 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/crypto.js"/>
89 </antcall>
90 </target>
91
92 <!-- deltablue -->
93 <target name="octane-deltablue" depends="jar">
94 <antcall target="run-octane">
95 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/deltablue.js"/>
96 </antcall>
97 </target>
98
99 <target name="octane-deltablue-v8" depends="jar">
100 <antcall target="run-octane-v8">
101 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/deltablue.js"/>
102 </antcall>
103 </target>
104
105 <target name="octane-deltablue-rhino" depends="jar">
106 <antcall target="run-octane-rhino">
107 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/deltablue.js"/>
108 </antcall>
109 </target>
110
111 <!-- earley-boyer -->
112 <target name="octane-earley-boyer" depends="jar">
113 <antcall target="run-octane">
114 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/earley-boyer.js"/>
115 </antcall>
116 </target>
117
118 <target name="octane-earley-boyer-v8" depends="jar">
119 <antcall target="run-octane-v8">
120 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/earley-boyer.js"/>
121 </antcall>
122 </target>
123
124 <target name="octane-earley-boyer-rhino" depends="jar">
125 <antcall target="run-octane-rhino">
126 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/earley-boyer.js"/>
127 </antcall>
128 </target>
129
130 <!-- gbemu -->
131 <target name="octane-gbemu" depends="jar">
132 <antcall target="run-octane">
133 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/gbemu.js"/>
134 </antcall>
135 </target>
136
137 <target name="octane-gbemu-v8" depends="jar">
138 <antcall target="run-octane-v8">
139 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/gbemu.js"/>
140 </antcall>
141 </target>
142
143 <target name="octane-gbemu-rhino" depends="jar">
144 <antcall target="run-octane-rhino">
145 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/gbemu.js"/>
146 </antcall>
147 </target>
148
149 <!-- mandreel -->
150 <target name="octane-mandreel" depends="jar">
151 <antcall target="run-octane">
152 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/mandreel.js"/>
153 </antcall>
154 </target>
155
156 <target name="octane-mandreel-v8" depends="jar">
157 <antcall target="run-octane-v8">
158 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/mandreel.js"/>
159 </antcall>
160 </target>
161
162 <target name="octane-mandreel-rhino" depends="jar">
163 <antcall target="run-octane-rhino">
164 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/mandreel.js"/>
165 </antcall>
166 </target>
167
168 <!-- navier-stokes -->
169 <target name="octane-navier-stokes" depends="jar">
170 <antcall target="run-octane">
171 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/navier-stokes.js"/>
172 </antcall>
173 </target>
174
175 <target name="octane-navier-stokes-v8" depends="jar">
176 <antcall target="run-octane-v8">
177 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/navier-stokes.js"/>
178 </antcall>
179 </target>
180
181 <target name="octane-navier-stokes-rhino" depends="jar">
182 <antcall target="run-octane-rhino">
183 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/navier-stokes.js"/>
184 </antcall>
185 </target>
186
187 <!-- pdfjs -->
188 <target name="octane-pdfjs" depends="jar">
189 <antcall target="run-octane">
190 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/pdfjs.js"/>
191 </antcall>
192 </target>
193
194 <target name="octane-pdfjs-v8" depends="jar">
195 <antcall target="run-octane-v8">
196 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/pdfjs.js"/>
197 </antcall>
198 </target>
199
200 <target name="octane-pdfjs-rhino" depends="jar">
201 <antcall target="run-octane-rhino">
202 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/pdfjs.js"/>
203 </antcall>
204 </target>
205
206 <!-- raytrace -->
207 <target name="octane-raytrace" depends="jar">
208 <antcall target="run-octane">
209 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/raytrace.js"/>
210 </antcall>
211 </target>
212
213 <target name="octane-raytrace-v8" depends="jar">
214 <antcall target="run-octane-v8">
215 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/raytrace.js"/>
216 </antcall>
217 </target>
218
219 <target name="octane-raytrace-rhino" depends="jar">
220 <antcall target="run-octane-rhino">
221 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/raytrace.js"/>
222 </antcall>
223 </target>
224
225 <!-- regexp -->
226 <target name="octane-regexp" depends="jar">
227 <antcall target="run-octane">
228 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/regexp.js"/>
229 </antcall>
230 </target>
231
232 <target name="octane-regexp-octane-v8" depends="jar">
233 <antcall target="run-octane-v8">
234 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/regexp.js"/>
235 </antcall>
236 </target>
237
238 <target name="octane-regexp-rhino" depends="jar">
239 <antcall target="run-octane-rhino">
240 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/regexp.js"/>
241 </antcall>
242 </target>
243
244 <!-- richards -->
245 <target name="octane-richards" depends="jar">
246 <antcall target="run-octane">
247 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/richards.js"/>
248 </antcall>
249 </target>
250
251 <target name="octane-richards-v8" depends="jar">
252 <antcall target="run-octane-v8">
253 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/richards.js"/>
254 </antcall>
255 </target>
256
257 <target name="octane-richards-rhino" depends="jar">
258 <antcall target="run-octane-rhino">
259 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/richards.js"/>
260 </antcall>
261 </target>
262
263 <!-- splay -->
264 <target name="octane-splay" depends="jar">
265 <antcall target="run-octane">
266 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/splay.js"/>
267 </antcall>
268 </target>
269
270 <target name="octane-splay-v8" depends="jar">
271 <antcall target="run-octane-v8">
272 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/splay.js"/>
273 </antcall>
274 </target>
275
276 <target name="octane-splay-rhino" depends="jar">
277 <antcall target="run-octane-rhino">
278 <param name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/splay.js"/>
279 </antcall>
280 </target>
281
282 <!-- run octane benchmarks in a single process -->
283 <target name="octane-single-process" depends="octane-init">
42 <antcall target="run-octane"/> 284 <antcall target="run-octane"/>
43 </target> 285 </target>
44 286
45 <target name="octane-box2d-v8" depends="jar, box2d-init, octane-verbose"> 287 <!-- mandreel excluded due to OOM -->
46 <antcall target="run-octane-v8"/> 288 <target name="octane-separate-process" depends=
47 </target> 289 "octane-box2d, octane-code-load, octane-crypto,
48 290 octane-deltablue, octane-earley-boyer, octane-gbemu,
49 <target name="octane-box2d-rhino" depends="jar, box2d-init, octane-verbose"> 291 octane-navier-stokes, octane-pdfjs, octane-raytrace,
50 <antcall target="run-octane-rhino"/> 292 octane-regexp, octane-richards, octane-splay"/>
51 </target> 293
52 294 <target name="--single-process" unless="${octane-test-sys-prop.separate.process}">
53 <!-- code-load --> 295 <antcall target="octane-single-process"/>
54 <target name="code-load-init"> 296 </target>
55 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/code-load.js"/> 297 <target name="--separate-process" if="${octane-test-sys-prop.separate.process}">
56 </target> 298 <antcall target="octane-separate-process"/>
57 299 </target>
58 <target name="octane-code-load" depends="jar, code-load-init, octane-verbose"> 300
59 <antcall target="run-octane"/> 301 <!-- run 'octane' in single or separate processes based on config -->
60 </target> 302 <target name="octane" depends="init, --single-process, --separate-process"/>
61
62 <target name="octane-code-load-v8" depends="jar, code-load-init, octane-verbose">
63 <antcall target="run-octane-v8"/>
64 </target>
65
66 <target name="octane-code-load-rhino" depends="jar, code-load-init, octane-verbose">
67 <antcall target="run-octane-rhino"/>
68 </target>
69
70 <!-- crypto -->
71 <target name="crypto-init">
72 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/crypto.js"/>
73 </target>
74
75 <target name="octane-crypto" depends="jar, crypto-init, octane-verbose">
76 <antcall target="run-octane"/>
77 </target>
78
79 <target name="octane-crypto-v8" depends="jar, crypto-init, octane-verbose">
80 <antcall target="run-octane-v8"/>
81 </target>
82
83 <target name="octane-crypto-rhino" depends="jar, crypto-init, octane-verbose">
84 <antcall target="run-octane-rhino"/>
85 </target>
86
87 <!-- deltablue -->
88 <target name="deltablue-init">
89 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/deltablue.js"/>
90 </target>
91
92 <target name="octane-deltablue" depends="jar, deltablue-init, octane-verbose">
93 <antcall target="run-octane"/>
94 </target>
95
96 <target name="octane-deltablue-v8" depends="jar, deltablue-init, octane-verbose">
97 <antcall target="run-octane-v8"/>
98 </target>
99
100 <target name="octane-deltablue-rhino" depends="jar, deltablue-init, octane-verbose">
101 <antcall target="run-octane-rhino"/>
102 </target>
103
104 <!-- earley-boyer -->
105 <target name="earley-boyer-init">
106 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/earley-boyer.js"/>
107 </target>
108
109 <target name="octane-earley-boyer" depends="jar, earley-boyer-init, octane-verbose">
110 <antcall target="run-octane"/>
111 </target>
112
113 <target name="octane-earley-boyer-v8" depends="jar, earley-boyer-init, octane-verbose">
114 <antcall target="run-octane-v8"/>
115 </target>
116
117 <target name="octane-earley-boyer-rhino" depends="jar, earley-boyer-init, octane-verbose">
118 <antcall target="run-octane-rhino"/>
119 </target>
120
121 <!-- gbemu -->
122 <target name="gbemu-init">
123 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/gbemu.js"/>
124 </target>
125
126 <target name="octane-gbemu" depends="jar, gbemu-init, octane-verbose">
127 <antcall target="run-octane"/>
128 </target>
129
130 <target name="octane-gbemu-v8" depends="jar, gbemu-init, octane-verbose">
131 <antcall target="run-octane-v8"/>
132 </target>
133
134 <target name="octane-gbemu-rhino" depends="jar, gbemu-init, octane-verbose">
135 <antcall target="run-octane-rhino"/>
136 </target>
137
138 <!-- navier-stokes -->
139 <target name="navier-stokes-init">
140 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/navier-stokes.js"/>
141 </target>
142
143 <target name="octane-navier-stokes" depends="jar, navier-stokes-init, octane-verbose">
144 <antcall target="run-octane"/>
145 </target>
146
147 <target name="octane-navier-stokes-v8" depends="jar, navier-stokes-init, octane-verbose">
148 <antcall target="run-octane-v8"/>
149 </target>
150
151 <target name="octane-navier-stokes-rhino" depends="jar, navier-stokes-init, octane-verbose">
152 <antcall target="run-octane-rhino"/>
153 </target>
154
155 <!-- pdfjs -->
156 <target name="pdfjs-init">
157 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/pdfjs.js"/>
158 </target>
159
160 <target name="octane-pdfjs" depends="jar, pdfjs-init, octane-verbose">
161 <antcall target="run-octane"/>
162 </target>
163
164 <target name="octane-pdfjs-v8" depends="jar, pdfjs-init, octane-verbose">
165 <antcall target="run-octane-v8"/>
166 </target>
167
168 <target name="octane-pdfjs-rhino" depends="jar, pdfjs-init, octane-verbose">
169 <antcall target="run-octane-rhino"/>
170 </target>
171
172 <!-- raytrace -->
173 <target name="raytrace-init">
174 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/raytrace.js"/>
175 </target>
176
177 <target name="octane-raytrace" depends="jar, raytrace-init, octane-verbose">
178 <antcall target="run-octane"/>
179 </target>
180
181 <target name="octane-raytrace-v8" depends="jar, raytrace-init, octane-verbose">
182 <antcall target="run-octane-v8"/>
183 </target>
184
185 <target name="octane-raytrace-rhino" depends="jar, raytrace-init, octane-verbose">
186 <antcall target="run-octane-rhino"/>
187 </target>
188
189 <!-- regexp -->
190 <target name="regexp-init">
191 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/regexp.js"/>
192 </target>
193
194 <target name="octane-regexp" depends="jar, regexp-init, octane-verbose">
195 <antcall target="run-octane"/>
196 </target>
197
198 <target name="octane-regexp-octane-v8" depends="jar, regexp-init, octane-verbose">
199 <antcall target="run-octane-v8"/>
200 </target>
201
202 <target name="octane-regexp-rhino" depends="jar, regexp-init, octane-verbose">
203 <antcall target="run-octane-rhino"/>
204 </target>
205
206
207 <!-- splay -->
208 <target name="splay-init">
209 <property name="octane-tests" value="${octane-test-sys-prop.test.js.roots}/splay.js"/>
210 </target>
211
212 <target name="octane-splay" depends="jar, splay-init, octane-verbose">
213 <antcall target="run-octane"/>
214 </target>
215
216 <target name="octane-splay-v8" depends="jar, splay-init, octane-verbose">
217 <antcall target="run-octane-v8"/>
218 </target>
219
220 <target name="octane-splay-rhino" depends="jar, splay-init, octane-verbose">
221 <antcall target="run-octane-rhino"/>
222 </target>
223
224 <target name="octane-verbose">
225 <property name="extra-arg" value="--verbose"/>
226 </target>
227
228 <!-- run octane benchmarks using Nashorn as runtime -->
229 <target name="octane" depends="octane-init">
230 <antcall target="run-octane"/>
231 </target>
232 303
233 <!-- run octane benchmarks using octane as runtime --> 304 <!-- run octane benchmarks using octane as runtime -->
234 <target name="octane-v8" depends="octane-init"> 305 <target name="octane-v8" depends="octane-init">
235 <antcall target="run-octane-v8"/> 306 <antcall target="run-octane-v8"/>
236 </target> 307 </target>
252 <arg value="${octane-tests}"/> 323 <arg value="${octane-tests}"/>
253 <arg value="--runtime"/> 324 <arg value="--runtime"/>
254 <arg value="Nashorn"/> 325 <arg value="Nashorn"/>
255 <arg value="--verbose"/> 326 <arg value="--verbose"/>
256 <arg value="--iterations 8"/> 327 <arg value="--iterations 8"/>
257 <arg value="${extra-arg}"/>
258 </java> 328 </java>
259 </target> 329 </target>
260 330
261 <target name="run-octane-v8"> 331 <target name="run-octane-v8">
262 <exec executable="${v8.shell}"> 332 <exec executable="${v8.shell}">
265 <arg value="${octane-tests}"/> 335 <arg value="${octane-tests}"/>
266 <arg value="--runtime"/> 336 <arg value="--runtime"/>
267 <arg value="v8"/> 337 <arg value="v8"/>
268 <arg value="--verbose"/> 338 <arg value="--verbose"/>
269 <arg value="--iterations 8"/> 339 <arg value="--iterations 8"/>
270 <arg value="${extra-arg}"/>
271 </exec> 340 </exec>
272 </target> 341 </target>
273 342
274 <target name="run-octane-rhino"> 343 <target name="run-octane-rhino">
275 <java jar="${rhino.jar}" 344 <java jar="${rhino.jar}"
281 <arg value="${octane-tests}"/> 350 <arg value="${octane-tests}"/>
282 <arg value="--runtime"/> 351 <arg value="--runtime"/>
283 <arg value="Rhino"/> 352 <arg value="Rhino"/>
284 <arg value="--verbose"/> 353 <arg value="--verbose"/>
285 <arg value="--iterations 8"/> 354 <arg value="--iterations 8"/>
286 <arg value="${extra-arg}"/>
287 </java> 355 </java>
288 </target> 356 </target>
289 357
290 <!-- run octane with all known runtimes for comparison --> 358 <!-- run octane with all known runtimes for comparison -->
291 <target name="octane-all" depends="octane, octane-v8, octane-rhino"> 359 <target name="octane-all" depends="octane, octane-v8, octane-rhino">

mercurial