-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTestingJikesRVM.html
More file actions
1822 lines (1765 loc) · 81.3 KB
/
Copy pathTestingJikesRVM.html
File metadata and controls
1822 lines (1765 loc) · 81.3 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
layout: default
---
<?xml version="1.0" encoding="utf8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
<html xmlns="http://www.w3.org/1999/xhtml"
>
<head><title>10 Testing Jikes RVM</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<meta name="generator" content="TeX4ht (https://tug.org/tex4ht/)" />
<meta name="originator" content="TeX4ht (https://tug.org/tex4ht/)" />
<!-- xhtml,charset=utf8,2,html -->
<meta name="src" content="index.tex" />
<link rel="stylesheet" type="text/css" href="index.css" />
</head><body
>
<!--l. 2--><div class="crosslinks"><p class="noindent"></p></div>
<h2 class="chapterHead"><span class="titlemark">Chapter 10</span><br /><a
id="x12-11000010"></a>Testing Jikes RVM</h2>
<!--l. 5--><p class="noindent" >Jikes RVM includes provisions to run unit tests as well as functional and performance
tests. It also includes a number of actual tests, both unit and functional
ones.
</p>
<h3 class="sectionHead"><span class="titlemark">10.1 </span> <a
id="x12-11100010.1"></a>Unit Tests</h3>
<!--l. 9--><p class="noindent" >Jikes RVM makes writing simple unit tests easy. Simply give your JUnit 4 tests a
name ending in Test and place test sources under <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">rvm/test-src</span></span></span>. The tests will be
picked up automatically.
</p><!--l. 11--><p class="noindent" >The tests are then run on the bootstrap VM, i.e. the JVM used to build Jikes RVM.
You can also <a
href="/UserGuide/BuildingJikesRVM/index.html#x5-60003">configure the build</a> to run unit tests on the newly built Jikes RVM.
Note that this may significantly increase the build times of slow configurations (e.g.
prototype and protype-opt).
</p><!--l. 13--><p class="noindent" >If you are developing new unit tests, it may be helpful to run them on an
existing Jikes RVM image. This can be done by using the Ant target
<span class="obeylines-h"><span class="verb"><span
class="cmtt-10">unit-tests-on-existing-image</span></span></span>. The path for the image is determined by the usual
properties of the Ant build.
</p><!--l. 16--><p class="noindent" >
</p>
<h3 class="sectionHead"><span class="titlemark">10.2 </span> <a
id="x12-11200010.2"></a>Functional and Performance Tests</h3>
<!--l. 18--><p class="noindent" >See <a
href="#x12-11800010.3">External Test Resources</a> for details or downloading prerequisites for the
functional tests. The tests are executed using an Ant build file and produce
results that conform to the definition below. The results are aggregated
and processed to produce a high level report defining the status of Jikes
RVM.
</p><!--l. 20--><p class="noindent" >The testing framework was designed to support continuous and periodical execution
of tests. A <span
class="cmti-10">”test-run” </span>occurs every time the testing framework is invoked. Every
<span
class="cmti-10">”test-run” </span>will execute one or more <span
class="cmti-10">”test-configuration”</span>s. A <span
class="cmti-10">”test-configuration”</span>
defines a particular build <span
class="cmti-10">”configuration” </span>(See <a
href="/UserGuide/ConfiguringJikesRVM/index.html#x6-430004">Configuring Jikes RVM</a> for details)
combined with a set of parameters that are passed to Jikes RVM during the
execution of the tests. i.e. a particular <span
class="cmti-10">”test-configuration” </span>may pass parameters such
as <span
class="cmtt-10">-X:aos:enable</span><span
class="cmtt-10">_recompilation=false -X:aos:initial</span><span
class="cmtt-10">_compiler=opt</span>
<span
class="cmtt-10">-X:irc:O1 </span>to test the Level 1 Opt compiler optimizations.
</p><!--l. 22--><p class="noindent" >Every <span
class="cmti-10">”test-configuration” </span>will execute one or more <span
class="cmti-10">”group”</span>s of tests. Every
<span
class="cmti-10">”group” </span>is defined by a Ant build.xml file in a separate sub-directory of
<span class="obeylines-h"><span class="verb"><span
class="cmtt-10">$RVM_ROOT/testing/tests</span></span></span>. Each <span
class="cmti-10">”test” </span>has a number of input parameters such as
the classname to execute, the parameters to pass to Jikes RVM or to the program.
The <span
class="cmti-10">”test” </span>records a number of values such as execution time, exit code, result,
standard output etc. and may also record a number of statistics if it is a performance
test.
</p><!--l. 24--><p class="noindent" >The project includes several different types of test runs and the description of each
the test runs and their purpose is given in <a
href="#x12-13200010.4">Test Run Descriptions</a>.
</p><!--l. 26--><p class="noindent" >Note that the <a
href="/UserGuide/BuildingJikesRVM/index.html#x5-340003.8">buildit script</a> provides a fast and easy way to build and the
system. The script is simply a wrapper around the mechanisms described
below.
</p><!--l. 28--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">10.2.1 </span> <a
id="x12-11300010.2.1"></a>Ant properties</h4>
<!--l. 30--><p class="noindent" >There is a number of ant properties that control the test process. Besides the
properties that are already defined in <a
href="/UserGuide/BuildingJikesRVM/index.html#x5-60003">Building Jikes RVM</a>, special test properties
may also be specified.
</p>
<div class="table">
<!--l. 33--><p class="noindent" ><a
id="x12-113001r1"></a></p><hr class="float" /><div class="float"
>
<div class="tabular"> <table id="TBL-12" class="tabular"
><colgroup id="TBL-12-1g"><col
id="TBL-12-1" /><col
id="TBL-12-2" /><col
id="TBL-12-3" /></colgroup><tr
style="vertical-align:baseline;" id="TBL-12-1-"><td style="white-space:normal; text-align:left;" id="TBL-12-1-1"
class="td11"><!--l. 36--><p class="noindent" >Property </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-1-2"
class="td11"><!--l. 36--><p class="noindent" >Description </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-1-3"
class="td11"><!--l. 36--><p class="noindent" >Default </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-2-"><td style="white-space:normal; text-align:left;" id="TBL-12-2-1"
class="td11"><!--l. 37--><p class="noindent" >test-run.name </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-2-2"
class="td11"><!--l. 37--><p class="noindent" >The name of the test-run. The name
should match one of the files located in
the build/test-runs/ directory minus the
’.properties’ extension. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-2-3"
class="td11"><!--l. 37--><p class="noindent" >pre-commit </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-3-"><td style="white-space:normal; text-align:left;" id="TBL-12-3-1"
class="td11"><!--l. 38--><p class="noindent" >results.dir </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-3-2"
class="td11"><!--l. 38--><p class="noindent" >The directory where Ant stores the
results of the test run. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-3-3"
class="td11"><!--l. 38--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>jikesrvm.dir<span
class="cmsy-10">}</span>/<br
class="newline" />results </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-4-"><td style="white-space:normal; text-align:left;" id="TBL-12-4-1"
class="td11"><!--l. 39--><p class="noindent" >results.archive </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-4-2"
class="td11"><!--l. 39--><p class="noindent" >The directory where Ant gzips and
archives a copy of test run results and
reports. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-4-3"
class="td11"><!--l. 39--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>results.dir<span
class="cmsy-10">}</span>/<br
class="newline" />archive </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-5-"><td style="white-space:normal; text-align:left;" id="TBL-12-5-1"
class="td11"><!--l. 40--><p class="noindent" >send.reports </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-5-2"
class="td11"><!--l. 40--><p class="noindent" >Define this property to send reports via
email. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-5-3"
class="td11"><!--l. 40--><p class="noindent" >(Undefined) </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-6-"><td style="white-space:normal; text-align:left;" id="TBL-12-6-1"
class="td11"><!--l. 41--><p class="noindent" >mail.from </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-6-2"
class="td11"><!--l. 41--><p class="noindent" >The from address used when emailing
report. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-6-3"
class="td11"><!--l. 41--><p class="noindent" >jikesrvm-core@<br
class="newline" />lists.sourceforge.<br
class="newline" />net </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-7-"><td style="white-space:normal; text-align:left;" id="TBL-12-7-1"
class="td11"><!--l. 42--><p class="noindent" >mail.to </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-7-2"
class="td11"><!--l. 42--><p class="noindent" >The to address used when emailing
report. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-7-3"
class="td11"><!--l. 42--><p class="noindent" >jikesrvm-<br
class="newline" />regression@<br
class="newline" />lists.sourceforge.<br
class="newline" />net </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-8-"><td style="white-space:normal; text-align:left;" id="TBL-12-8-1"
class="td11"><!--l. 43--><p class="noindent" >mail.host </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-8-2"
class="td11"><!--l. 43--><p class="noindent" >The host to connect to when sending
mail. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-8-3"
class="td11"><!--l. 43--><p class="noindent" >localhost </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-9-"><td style="white-space:normal; text-align:left;" id="TBL-12-9-1"
class="td11"><!--l. 44--><p class="noindent" >mail.port </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-9-2"
class="td11"><!--l. 44--><p class="noindent" >The port to connect to when sending
mail. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-9-3"
class="td11"><!--l. 44--><p class="noindent" >25 </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-10-"><td style="white-space:normal; text-align:left;" id="TBL-12-10-1"
class="td11"><!--l. 45--><p class="noindent" ><span
class="cmmi-10"><</span>configuration<span
class="cmmi-10">></span>.<br
class="newline" />built </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-10-2"
class="td11"><!--l. 45--><p class="noindent" >If set to true, the test process will
skip the build step for specified
configurations. For the test process to
work the build must already be present.</p></td><td style="white-space:normal; text-align:left;" id="TBL-12-10-3"
class="td11"><!--l. 45--><p class="noindent" >(Undefined) </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-11-"><td style="white-space:normal; text-align:left;" id="TBL-12-11-1"
class="td11"><!--l. 46--><p class="noindent" >skip.build </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-11-2"
class="td11"><!--l. 46--><p class="noindent" >If defined the test process will skip the
build step for all configurations and the
javadoc generation step. For the test
process to work the build must already
be present. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-11-3"
class="td11"><!--l. 46--><p class="noindent" >(Undefined) </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-12-"><td style="white-space:normal; text-align:left;" id="TBL-12-12-1"
class="td11"><!--l. 47--><p class="noindent" >skip.javadoc </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-12-2"
class="td11"><!--l. 47--><p class="noindent" >If defined the test process will skip the
javadoc generation step. </p></td><td style="white-space:normal; text-align:left;" id="TBL-12-12-3"
class="td11"><!--l. 47--><p class="noindent" >(Undefined) </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-12-13-"><td style="white-space:normal; text-align:left;" id="TBL-12-13-1"
class="td11"> </td></tr></table></div>
<br /> <div class="caption"
><span class="id">Table 10.1: </span><span
class="content">Test properties</span></div><!--tex4ht:label?: x12-113001r1 -->
</div><hr class="endfloat" />
</div>
<h4 class="subsectionHead"><span class="titlemark">10.2.2 </span> <a
id="x12-11400010.2.2"></a>Defining a test-run</h4>
<!--l. 56--><p class="noindent" >A <span
class="cmti-10">test-run </span>is defined by a number of properties located in a property file located in
the <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">build/test-runs/</span></span></span> directory.
</p><!--l. 58--><p class="noindent" >The property test.configs is a whitespace separated list of test-configuration
”tags”. Every tag uniquely identifies a particular test-configuration. Every
test-configuration is defined by a number of properties in the property file that are
prefixed with test.config.<span
class="cmmi-10"><</span>tag<span
class="cmmi-10">></span>. See the test run property table for the possible
properties.
</p>
<div class="table">
<!--l. 60--><p class="noindent" ><a
id="x12-114001r2"></a></p><hr class="float" /><div class="float"
>
<div class="tabular"> <table id="TBL-13" class="tabular"
><colgroup id="TBL-13-1g"><col
id="TBL-13-1" /><col
id="TBL-13-2" /><col
id="TBL-13-3" /></colgroup><tr
style="vertical-align:baseline;" id="TBL-13-1-"><td style="white-space:normal; text-align:left;" id="TBL-13-1-1"
class="td11"><!--l. 63--><p class="noindent" >Property </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-1-2"
class="td11"><!--l. 63--><p class="noindent" >Description </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-1-3"
class="td11"><!--l. 63--><p class="noindent" >Default </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-13-2-"><td style="white-space:normal; text-align:left;" id="TBL-13-2-1"
class="td11"><!--l. 64--><p class="noindent" >tests </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-2-2"
class="td11"><!--l. 64--><p class="noindent" >The names of the test groups to execute. </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-2-3"
class="td11"><!--l. 64--><p class="noindent" >None </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-13-3-"><td style="white-space:normal; text-align:left;" id="TBL-13-3-1"
class="td11"><!--l. 65--><p class="noindent" >name </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-3-2"
class="td11"><!--l. 65--><p class="noindent" >The unique identifier for test-configuration. </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-3-3"
class="td11"><!--l. 65--><p class="noindent" >”” </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-13-4-"><td style="white-space:normal; text-align:left;" id="TBL-13-4-1"
class="td11"><!--l. 66--><p class="noindent" >configuration </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-4-2"
class="td11"><!--l. 66--><p class="noindent" >The name of the Jikes RVM build configuration
to test. </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-4-3"
class="td11"><!--l. 66--><p class="noindent" ><span
class="cmmi-10"><</span>tag<span
class="cmmi-10">></span> </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-13-5-"><td style="white-space:normal; text-align:left;" id="TBL-13-5-1"
class="td11"><!--l. 67--><p class="noindent" >target </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-5-2"
class="td11"><!--l. 67--><p class="noindent" >The name of the Jikes RVM build target. This
can be used to trigger compilation of a profiled
image </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-5-3"
class="td11"><!--l. 67--><p class="noindent" >”main” </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-13-6-"><td style="white-space:normal; text-align:left;" id="TBL-13-6-1"
class="td11"><!--l. 68--><p class="noindent" >mode </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-6-2"
class="td11"><!--l. 68--><p class="noindent" >The test mode. May modify the way test groups
execute. See individual groups for details. </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-6-3"
class="td11"><!--l. 68--><p class="noindent" >”” </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-13-7-"><td style="white-space:normal; text-align:left;" id="TBL-13-7-1"
class="td11"><!--l. 69--><p class="noindent" >extra.rvm.args </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-7-2"
class="td11"><!--l. 69--><p class="noindent" >Extra arguments that are passed to the Jikes
RVM. These may be varied for different runs
using the same image. </p></td><td style="white-space:normal; text-align:left;" id="TBL-13-7-3"
class="td11"><!--l. 69--><p class="noindent" >”” </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-13-8-"><td style="white-space:normal; text-align:left;" id="TBL-13-8-1"
class="td11"> </td></tr></table></div>
<br /> <div class="caption"
><span class="id">Table 10.2: </span><span
class="content">Test run properties</span></div><!--tex4ht:label?: x12-114001r2 -->
</div><hr class="endfloat" />
</div>
<!--l. 74--><p class="noindent" >The order of the test-configurations in <span
class="cmti-10">test.configs </span>is the order that the
test-configurations are tested. The order of the groups in <span
class="cmti-10">test.config.</span><span
class="cmmi-10"><</span><span
class="cmti-10">tag</span><span
class="cmmi-10">></span><span
class="cmti-10">.test </span>is the
order that the tests are executed.
</p><!--l. 76--><p class="noindent" >The simplest test-run is defined in the following figure. It will use the build
configuration <span
class="cmti-10">”prototype” </span>and execute tests in the <span
class="cmti-10">”basic” </span>group.
</p>
<!--l. 78-->
<br />
<div class="caption"
><span class="id">14cAp1x12-11400010.2.2:
</span><span
class="content">build/test-runs/simple.properties</span></div><!--tex4ht:label?: x12-11400010.2 --><div class="lstlisting" id="listing-78"><span class="label"><a
id="x12-114002r1"></a></span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">configs</span><span
class="cmtt-10">=</span><span
class="cmtt-10">prototype</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-114003r2"></a></span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">config</span><span
class="cmtt-10">.</span><span
class="cmtt-10">prototype</span><span
class="cmtt-10">.</span><span
class="cmtt-10">tests</span><span
class="cmtt-10">=</span><span
class="cmtt-10">basic</span>
</div>
<!--l. 83--><p class="noindent" >The test process also expands properties in the property file so it is possible to define
a set of tests once but use them in multiple test-configurations as occurs in the
following figure. The groups basic, optests and dacapo are executed in both the
prototype and prototype-opt test configurations.
</p>
<!--l. 85-->
<br />
<div class="caption"
><span class="id">14cAp2x12-11400010.2.2:
</span><span
class="content">build/test-runs/property-expansion.properties</span></div><!--tex4ht:label?: x12-11400010.2 --><div class="lstlisting" id="listing-79"><span class="label"><a
id="x12-114004r1"></a></span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">set</span><span
class="cmtt-10">=</span><span
class="cmtt-10">basic</span><span
class="cmtt-10"> </span><span
class="cmtt-10">optests</span><span
class="cmtt-10"> </span><span
class="cmtt-10">dacapo</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-114005r2"></a></span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">configs</span><span
class="cmtt-10">=</span><span
class="cmtt-10">prototype</span><span
class="cmtt-10"> </span><span
class="cmtt-10">prototype</span><span
class="cmtt-10">-</span><span
class="cmtt-10">opt</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-114006r3"></a></span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">config</span><span
class="cmtt-10">.</span><span
class="cmtt-10">prototype</span><span
class="cmtt-10">.</span><span
class="cmtt-10">tests</span><span
class="cmtt-10">=</span><span
class="tctt-1000">$</span><span
class="cmtt-10">{</span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">set</span><span
class="cmtt-10">}</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-114007r4"></a></span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">config</span><span
class="cmtt-10">.</span><span
class="cmtt-10">prototype</span><span
class="cmtt-10">-</span><span
class="cmtt-10">opt</span><span
class="cmtt-10">.</span><span
class="cmtt-10">tests</span><span
class="cmtt-10">=</span><span
class="tctt-1000">$</span><span
class="cmtt-10">{</span><span
class="cmtt-10">test</span><span
class="cmtt-10">.</span><span
class="cmtt-10">set</span><span
class="cmtt-10">}</span>
</div>
<!--l. 92--><p class="noindent" >Each test can have additional parameters specified that will be used by the
test infrastructure when starting the Jikes RVM instance to execute the
test. These additional parameters are described in table for test specific
parameters.
</p>
<div class="table">
<!--l. 94--><p class="noindent" ><a
id="x12-114008r3"></a></p><hr class="float" /><div class="float"
>
<div class="tabular"> <table id="TBL-14" class="tabular"
><colgroup id="TBL-14-1g"><col
id="TBL-14-1" /><col
id="TBL-14-2" /><col
id="TBL-14-3" /><col
id="TBL-14-4" /></colgroup><tr
style="vertical-align:baseline;" id="TBL-14-1-"><td style="white-space:normal; text-align:left;" id="TBL-14-1-1"
class="td11"><!--l. 97--><p class="noindent" >Parameter </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-1-2"
class="td11"><!--l. 97--><p class="noindent" >Description </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-1-3"
class="td11"><!--l. 97--><p class="noindent" >Default Property </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-1-4"
class="td11"><!--l. 97--><p class="noindent" >Default Value </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-2-"><td style="white-space:normal; text-align:left;" id="TBL-14-2-1"
class="td11"><!--l. 98--><p class="noindent" >initial.heapsize </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-2-2"
class="td11"><!--l. 98--><p class="noindent" >The initial size
of the heap. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-2-3"
class="td11"><!--l. 98--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>test.initial.heapsize<span
class="cmsy-10">}</span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-2-4"
class="td11"><!--l. 98--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>config.default-heapsize.initial<span
class="cmsy-10">}</span> </p> </td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-3-"><td style="white-space:normal; text-align:left;" id="TBL-14-3-1"
class="td11"><!--l. 99--><p class="noindent" >max.heapsize </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-3-2"
class="td11"><!--l. 99--><p class="noindent" >The initial size
of the heap. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-3-3"
class="td11"><!--l. 99--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>test.max.heapsize<span
class="cmsy-10">}</span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-3-4"
class="td11"><!--l. 99--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>config.default-heapsize.maximum<span
class="cmsy-10">}</span> </p> </td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-4-"><td style="white-space:normal; text-align:left;" id="TBL-14-4-1"
class="td11"><!--l. 100--><p class="noindent" >max.opt.level </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-4-2"
class="td11"><!--l. 100--><p class="noindent" >The maximum
optimization
level
for the tests or
an empty string
to use the Jikes
RVM default. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-4-3"
class="td11"><!--l. 100--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>test.max.opt.level<span
class="cmsy-10">}</span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-4-4"
class="td11"><!--l. 100--><p class="noindent" >“” </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-5-"><td style="white-space:normal; text-align:left;" id="TBL-14-5-1"
class="td11"><!--l. 101--><p class="noindent" >processors </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-5-2"
class="td11"><!--l. 101--><p class="noindent" >The number
of processors to
use for garbage
collection for
the test or ’all’
to
use all available
processors. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-5-3"
class="td11"><!--l. 101--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>test.processors<span
class="cmsy-10">}</span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-5-4"
class="td11"><!--l. 101--><p class="noindent" >all </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-6-"><td style="white-space:normal; text-align:left;" id="TBL-14-6-1"
class="td11"><!--l. 102--><p class="noindent" >time.limit </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-6-2"
class="td11"><!--l. 102--><p class="noindent" >The time limit
for the test in
seconds. After
the time limit
expires
the Jikes RVM
instance will be
forcefully
terminated. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-6-3"
class="td11"><!--l. 102--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>test.time.limit<span
class="cmsy-10">}</span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-6-4"
class="td11"><!--l. 102--><p class="noindent" >1000 </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-7-"><td style="white-space:normal; text-align:left;" id="TBL-14-7-1"
class="td11"><!--l. 103--><p class="noindent" >class.path </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-7-2"
class="td11"><!--l. 103--><p class="noindent" >The class path
for the test. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-7-3"
class="td11"><!--l. 103--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>test.class.path<span
class="cmsy-10">}</span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-7-4"
class="td11"><!--l. 104--><p class="noindent" > </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-8-"><td style="white-space:normal; text-align:left;" id="TBL-14-8-1"
class="td11"><!--l. 104--><p class="noindent" >extra.args </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-8-2"
class="td11"><!--l. 104--><p class="noindent" >Extra
arguments that
are passed to
Jikes RVM. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-8-3"
class="td11"><!--l. 104--><p class="noindent" ><span
class="tcrm-1000">$</span><span
class="cmsy-10">{</span>test.rvm.extra.args<span
class="cmsy-10">}</span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-8-4"
class="td11"><!--l. 104--><p class="noindent" >“” </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-9-"><td style="white-space:normal; text-align:left;" id="TBL-14-9-1"
class="td11"><!--l. 105--><p class="noindent" >exclude </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-9-2"
class="td11"><!--l. 105--><p class="noindent" >If
set to true, the
test will be not
be executed. </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-9-3"
class="td11"><!--l. 105--><p class="noindent" > </p></td><td style="white-space:normal; text-align:left;" id="TBL-14-9-4"
class="td11"><!--l. 105--><p class="noindent" >“” </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-14-10-"><td style="white-space:normal; text-align:left;" id="TBL-14-10-1"
class="td11"> </td></tr></table></div>
<br /> <div class="caption"
><span class="id">Table 10.3: </span><span
class="content">Test specific parameters</span></div><!--tex4ht:label?: x12-114008r3 -->
</div><hr class="endfloat" />
</div>
<!--l. 111--><p class="noindent" >To determine the value of a test specific parameters, the following mechanism is
used:
</p><ol class="enumerate1" >
<li
class="enumerate" id="x12-114010x1">Search for one of the the following ant properties, in order.
<ol class="enumerate2" >
<li
class="enumerate" id="x12-114012x1">test.config.<span
class="cmmi-10"><</span>build-configuration<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>group<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>test<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>parameter<span
class="cmmi-10">></span>
</li>
<li
class="enumerate" id="x12-114014x2">test.config.<span
class="cmmi-10"><</span>build-configuration<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>group<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>parameter<span
class="cmmi-10">></span>
</li>
<li
class="enumerate" id="x12-114016x3">test.config.<span
class="cmmi-10"><</span>build-configuration<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>parameter<span
class="cmmi-10">></span>
</li>
<li
class="enumerate" id="x12-114018x4">test.config.<span
class="cmmi-10"><</span>build-configuration<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>group<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>test<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>parameter<span
class="cmmi-10">></span>
</li>
<li
class="enumerate" id="x12-114020x5">test.config.<span
class="cmmi-10"><</span>build-configuration<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>group<span
class="cmmi-10">></span>.<span
class="cmmi-10"><</span>parameter<span
class="cmmi-10">></span></li></ol>
</li>
<li
class="enumerate" id="x12-114022x2">If none of the above properties are defined then use the parameter that was
passed to the <span
class="cmmi-10"><</span>rvm<span
class="cmmi-10">></span> macro in the ant build file.
</li>
<li
class="enumerate" id="x12-114024x3">If no parameter was passed to the <span
class="cmmi-10"><</span>rvm<span
class="cmmi-10">></span> macro then use the default value
which is stored in the ”Default Property” as specified in the above table. By
default the value of the ”Default Property” is specified as the ”Default Value”
in the above table, however a particular build file may specify a different
”Default Value”.</li></ol>
<h4 class="subsectionHead"><span class="titlemark">10.2.3 </span> <a
id="x12-11500010.2.3"></a>Excluding tests</h4>
<!--l. 130--><p class="noindent" >Sometimes it is desirable to exclude tests. The test exclusion may occur as the test is
known to fail on a particular target platform, build configuration or maybe
it just takes too long. To exclude a test, you must define the test specific
parameter ”exclude” to true either in .ant.properties or in the test-run properties
file.
</p><!--l. 132--><p class="noindent" >For example, at the time of writing the Jikes RVM does not fully support volatile
fields and as a result the test named ”TestVolatile” in the ”basic” group will always
fail. Rather than being notified of this failure we can disable the test by adding a
property such as ”test.config.basic.TestVolatile.exclude=true” into test-run properties
file.
</p><!--l. 136--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">10.2.4 </span> <a
id="x12-11600010.2.4"></a>Executing a test-run</h4>
<!--l. 138--><p class="noindent" >The tests are executed by the Ant driver script <span
class="cmti-10">test.xml</span>. The <span
class="cmti-10">test-run.name </span>property
defines the particular test-run to execute and if not set defaults to <span
class="cmti-10">”sanity”</span>. The
command <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">ant -f test.xml -Dtest-run.name=simple</span></span></span> executes the test-run defined
in <span
class="cmti-10">build/test-runs/simple.properties</span>. When this command completes you can point
your browser at <br
class="newline" /><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">${results.dir}/tests/${test-run.name}/Report.html</span></span></span> to get an overview on test
run or at <br
class="newline" /><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">${results.dir}/tests/${test-run.name}/Report.xml</span></span></span> for an XML document
describing test results.
</p><!--l. 142--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">10.2.5 </span> <a
id="x12-11700010.2.5"></a>Jenkins integration</h4>
<!--l. 144--><p class="noindent" >Executing a test-run on a recent version of Jikes RVM (later than 3.1.3) also
produces a file called <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">MinimalReport-JUnitFormat.xml</span></span></span>. This file contains the test
results in a format that’s suitable for processing as JUnit results in Jenkins. To use
this file in Jenkins, select the appropriate job and add a post-build step to publish
JUnit test result reports. Ensure that the box ”Retain long standard output/error” is
<span
class="cmti-10">not checked</span>. If long standard output/error is retained, you will likely run into
<span
class="cmtt-10">OutOfMemoryErrors </span>when Jenkins parses the results of larger test runs. For example,
parsing results from the sanity test run (which contains <span
class="cmmi-10">></span>3000 test cases) exhausts 5
GB heaps.
</p><!--l. 2--><p class="noindent" >
</p>
<h3 class="sectionHead"><span class="titlemark">10.3 </span> <a
id="x12-11800010.3"></a>External Test Resources</h3>
<!--l. 5--><p class="noindent" >The tests included in the source tree are designed to test the correctness and
performance of the Jikes RVM. This document gives a step by step instructions for
setting up the external dependencies for these tests.
</p><!--l. 7--><p class="noindent" >The first step is selecting the base directory where all the external code is to be
located. The property <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">external.lib.dir</span></span></span> needs to be set to this location.
i.e.
</p>
<!--l. 9-->
<div class="lstlisting" id="listing-80"><span class="label"><a
id="x12-118001r1"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">echo</span><span
class="cmtt-10"> </span><span
class="cmtt-10">"</span><span
class="cmtt-10">external</span><span
class="cmtt-10">.</span><span
class="cmtt-10">lib</span><span
class="cmtt-10">.</span><span
class="cmtt-10">dir</span><span
class="cmtt-10">=/</span><span
class="cmtt-10">home</span><span
class="cmtt-10">/</span><span
class="cmtt-10">peter</span><span
class="cmtt-10">/</span><span
class="cmtt-10">Research</span><span
class="cmtt-10">/</span><span
class="cmtt-10">External</span><span
class="cmtt-10">"</span><span
class="cmtt-10"> </span><span
class="cmtt-10">>></span><span
class="cmtt-10"> </span><span
class="cmtt-10">.</span><span
class="cmtt-10">ant</span><span
class="cmtt-10">.</span><span
class="cmtt-10">properties</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-118002r2"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">mkdir</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">p</span><span
class="cmtt-10"> </span><span
class="cmtt-10">/</span><span
class="cmtt-10">home</span><span
class="cmtt-10">/</span><span
class="cmtt-10">peter</span><span
class="cmtt-10">/</span><span
class="cmtt-10">Research</span><span
class="cmtt-10">/</span><span
class="cmtt-10">External</span>
</div>
<!--l. 14--><p class="noindent" >Then you need to follow the instructions below for the desired benchmarks. The
instructions assume that the environment variable <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">BENCHMARK_ROOT</span></span></span> is set to the
same location as the <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">external.lib.dir</span></span></span> property.
</p><!--l. 16--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">10.3.1 </span> <a
id="x12-11900010.3.1"></a>Open Source Benchmarks</h4>
<!--l. 18--><p class="noindent" >In the future other benchmarks such as BigInteger, <a
href="http://www.sable.mcgill.ca/ashes/" >Ashes</a> or <a
href="http://www.volano.com/benchmarks.html" >Volano</a> may be
included.
</p><!--l. 20--><p class="noindent" >
</p>
<h5 class="subsubsectionHead"><a
id="x12-12000010.3.1"></a>Dacapo</h5>
<!--l. 22--><p class="noindent" ><a
href="http://dacapobench.org" >Dacapo</a> describes itself as ”This benchmark suite is intended as a tool for Java
benchmarking by the programming language, memory management and
computer architecture communities. It consists of a set of open source, real world
applications with non-trivial memory loads. The suite is the culmination of
over five years work at eight institutions, as part of the DaCapo research
project, which was funded by a National Science Foundation ITR Grant,
CCR-0085792.”
</p><!--l. 24--><p class="noindent" >The release needs to be downloaded and placed in the <span
class="tcrm-1000">$</span>BENCHMARK_ROOT/dacapo/
directory. i.e.
</p>
<!--l. 26-->
<div class="lstlisting" id="listing-81"><span class="label"><a
id="x12-120001r1"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">mkdir</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">p</span><span
class="cmtt-10"> </span><span
class="tctt-1000">$</span><span
class="cmtt-10">BENCHMARK_ROOT</span><span
class="cmtt-10">/</span><span
class="cmtt-10">dacapo</span><span
class="cmtt-10">/</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-120002r2"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">cd</span><span
class="cmtt-10"> </span><span
class="tctt-1000">$</span><span
class="cmtt-10">BENCHMARK_ROOT</span><span
class="cmtt-10">/</span><span
class="cmtt-10">dacapo</span><span
class="cmtt-10">/</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-120003r3"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">wget</span><span
class="cmtt-10"> </span><span
class="cmtt-10">http</span><span
class="cmtt-10">://</span><span
class="cmtt-10">sourceforge</span><span
class="cmtt-10">.</span><span
class="cmtt-10">net</span><span
class="cmtt-10">/</span><span
class="cmtt-10">projects</span><span
class="cmtt-10">/</span><span
class="cmtt-10">dacapobench</span><span
class="cmtt-10">/</span><span
class="cmtt-10">files</span><span
class="cmtt-10">/</span><span
class="cmtt-10">archive</span><span
class="cmtt-10">/2006-10/</span><span
class="cmtt-10">dacapo</span><span
class="cmtt-10">-2006-10.</span><span
class="cmtt-10">jar</span><span
class="cmtt-10">/</span><span
class="cmtt-10">download</span><span
class="cmtt-10">?</span><span
class="cmtt-10">use_mirror</span><span
class="cmtt-10">=</span><span
class="cmtt-10">autoselect</span><span
class="cmtt-10">"</span>
</div>
<!--l. 34--><p class="noindent" >
</p>
<h5 class="subsubsectionHead"><a
id="x12-12100010.3.1"></a>jBYTEmark</h5>
<!--l. 36--><p class="noindent" >jBYTEmark was a benchmark developed by Byte.com a long time ago.
</p>
<!--l. 38-->
<div class="lstlisting" id="listing-82"><span class="label"><a
id="x12-121001r1"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">mkdir</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">p</span><span
class="cmtt-10"> </span><span
class="tctt-1000">$</span><span
class="cmtt-10">BENCHMARK_ROOT</span><span
class="cmtt-10">/</span><span
class="cmtt-10">jBYTEmark</span><span
class="cmtt-10">-0.9</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121002r2"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">cd</span><span
class="cmtt-10"> </span><span
class="tctt-1000">$</span><span
class="cmtt-10">BENCHMARK_ROOT</span><span
class="cmtt-10">/</span><span
class="cmtt-10">jBYTEmark</span><span
class="cmtt-10">-0.9</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121003r3"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">wget</span><span
class="cmtt-10"> </span><span
class="cmtt-10">http</span><span
class="cmtt-10">://</span><span
class="cmtt-10">img</span><span
class="cmtt-10">.</span><span
class="cmtt-10">byte</span><span
class="cmtt-10">.</span><span
class="cmtt-10">com</span><span
class="cmtt-10">/</span><span
class="cmtt-10">byte</span><span
class="cmtt-10">/</span><span
class="cmtt-10">bmark</span><span
class="cmtt-10">/</span><span
class="cmtt-10">jbyte</span><span
class="cmtt-10">.</span><span
class="cmtt-10">zip</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121004r4"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">unzip</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">jo</span><span
class="cmtt-10"> </span><span
class="cmtt-10">jbyte</span><span
class="cmtt-10">.</span><span
class="cmtt-10">zip</span><span
class="cmtt-10"> </span><span
class="cmtt-10">’</span><span
class="cmtt-10">app</span><span
class="cmtt-10">/</span><span
class="cmtt-10">class</span><span
class="cmtt-10">/*’</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121005r5"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">unzip</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">jo</span><span
class="cmtt-10"> </span><span
class="cmtt-10">jbyte</span><span
class="cmtt-10">.</span><span
class="cmtt-10">zip</span><span
class="cmtt-10"> </span><span
class="cmtt-10">’</span><span
class="cmtt-10">app</span><span
class="cmtt-10">/</span><span
class="cmtt-10">src</span><span
class="cmtt-10">/</span><span
class="cmtt-10">jBYTEmark</span><span
class="cmtt-10">.</span><span
class="cmtt-10">java</span><span
class="cmtt-10">’</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121006r6"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">...</span><span
class="cmtt-10"> </span><span
class="cmtt-10">Edit</span><span
class="cmtt-10"> </span><span
class="cmtt-10">jBYTEmark</span><span
class="cmtt-10">.</span><span
class="cmtt-10">java</span><span
class="cmtt-10"> </span><span
class="cmtt-10">to</span><span
class="cmtt-10"> </span><span
class="cmtt-10">delete</span><span
class="cmtt-10"> </span><span
class="cmtt-10">"</span><span
class="cmtt-10">while</span><span
class="cmtt-10"> </span><span
class="cmtt-10">(</span><span
class="cmtt-10">true</span><span
class="cmtt-10">)</span><span
class="cmtt-10"> </span><span
class="cmtt-10">{}"</span><span
class="cmtt-10"> </span><span
class="cmtt-10">at</span><span
class="cmtt-10"> </span><span
class="cmtt-10">the</span><span
class="cmtt-10"> </span><span
class="cmtt-10">end</span><span
class="cmtt-10"> </span><span
class="cmtt-10">of</span><span
class="cmtt-10"> </span><span
class="cmtt-10">main</span><span
class="cmtt-10">.</span><span
class="cmtt-10"> </span><span
class="cmtt-10">...</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121007r7"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">javac</span><span
class="cmtt-10"> </span><span
class="cmtt-10">jBYTEmark</span><span
class="cmtt-10">.</span><span
class="cmtt-10">java</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121008r8"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">jar</span><span
class="cmtt-10"> </span><span
class="cmtt-10">cf</span><span
class="cmtt-10"> </span><span
class="cmtt-10">jBYTEmark</span><span
class="cmtt-10">-0.9.</span><span
class="cmtt-10">jar</span><span
class="cmtt-10"> </span><span
class="cmtt-10">*.</span><span
class="cmtt-10">class</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x12-121009r9"></a></span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">rm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">f</span><span
class="cmtt-10"> </span><span
class="cmtt-10">*.</span><span
class="cmtt-10">class</span><span
class="cmtt-10"> </span><span
class="cmtt-10">jBYTEmark</span><span
class="cmtt-10">.</span><span
class="cmtt-10">java</span>
</div>
<!--l. 52--><p class="noindent" >
</p>
<h5 class="subsubsectionHead"><a
id="x12-12200010.3.1"></a>CaffeineMark</h5>
<!--l. 54--><p class="noindent" ><a
href="http://www.benchmarkhq.ru/cm30/info.html" >CaffeineMark</a> describes itself as ”The CaffeineMark is a series of tests that measure
the speed of Java programs running in various hardware and software configurations.
CaffeineMark scores roughly correlate with the number of Java instructions
executed per second, and do not depend significantly on the the amount of
memory in the system or on the speed of a computers disk drives or internet