author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 10 Mar 2014 11:40:06 +0000 | |
changeset 212 | 44e0b30db8c0 |
child 308 | a09175ff8e80 |
permissions | -rw-r--r-- |
212
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
"{ Package: 'jv:calipel/s/benchmarks/stx' }" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
Object subclass:#BenchmarkSlopstone |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
4 |
instanceVariableNames:'testParams testBlocks' |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
classVariableNames:'' |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
poolDictionaries:'' |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
category:'CalipeL-S-Benchmarks-St/X' |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
!BenchmarkSlopstone class methodsFor:'documentation'! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
documentation |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
14 |
this is a low-level benchmark. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
15 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
16 |
The results are biased towards a 33Mhz/486, running ParcPlace VisualWorks v1.0. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
This configuration has a rating of 1 for all tests. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
claus: |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
Since it tests highly optimizable code (adding constants, for example) |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
21 |
which can be (and is) easily optimized away, the numbers given are |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
22 |
not too valuable to compare different smalltalk systems. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
23 |
(it may be useful, to compare different machines running the same |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
smalltalk, though). |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
See also: readme method |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
[author:] |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
Bruce Samuelson |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
[start with:] |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
Benchmarks::SlopstoneBenchmark new runBenchmark |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
readme |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
37 |
"INTRODUCTION |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
Slopstone: Smalltalk Low level OPeration Stones |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
40 |
Portable Low Level Benchmarks for ST80 and ST/V (using 16-bit SmallIntegers) |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
41 |
Placed in public domain January 1993 (c) Bruce Samuelson |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
Permission is given to place this in public Smalltalk archives |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
43 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
Use monospaced fonts if possible to view the methods in this class. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
46 |
(1) Collect garbage if supported (2) do 'SlopstoneBenchmark new runBenchmark'. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
47 |
Results are printed in the Transcript window. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
Post results for your machines to comp.lang.smalltalk or |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
mail them to bruce@ling.uta.edu or bruce@utafll.uta.edu. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
50 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
DISCUSSION |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
52 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
53 |
This readme method would normally be in the class comment for ST80. ST/V-DOS |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
54 |
doesn't support class comments. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
55 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
56 |
The benchmarks test strictly low level operations. They do not test higher |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
57 |
level operations such as forming sets, sorting, or streaming, nor do they test |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
58 |
applications. They also do not test user interface operations because of the |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
59 |
non-portability of this area of Smalltalk and its sensitivity to the |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
60 |
performance of the video subsystem. The tests are cpu bound. They do not |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
61 |
access files and should not cause disk paging. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
62 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
63 |
The benchmarks use loop counts of 16000 because SmallIntegers cannot exceed |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
16383 for ST/V-DOS. 16-bit implementions would perform worse with large loop |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
counts. The benchmarks are also suitable for testing 32-bit versions of |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
66 |
Smalltalk. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
67 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
68 |
DEFINITION OF REFERENCE MACHINE (ONE SLOPSTONE) |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
69 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
70 |
The following machine is the one on which I developed these benchmarks. By |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
71 |
convention it is defined to operate at one slopstone. It's a mid range |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
72 |
performer for current ParcPlace versions of Smalltalk. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
73 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
74 |
Hardware: Amax 486DX/33 (includes internal floating point processor and |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
75 |
internal 8K cache), 256K external cache, 16MB RAM. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
76 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
77 |
Software: ParcPlace VisualWorks 1.0, Windows 3.1, DOS 5.0 (plain vanilla |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
78 |
setup). |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
79 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
80 |
COMPARISON TO XEROX DORADO |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
81 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
82 |
For reference, the machine runs at 649% of a Dorado on ParcPlace benchmarks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
83 |
for ST80 4.1. Its fast video card helps on these PPS benchmarks. I didn't run |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
84 |
them for VisualWorks 1.0. It would be somewhat slower because there are vastly |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
85 |
more classes. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
86 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
87 |
SlopstoneBenchmark new runBenchmark |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
88 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
89 |
EXAMPLE RESULTS FOR REFERENCE MACHINE |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
90 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
91 |
1000s time 1000s of |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
92 |
itera- sec- iterations slop- |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
93 |
tions onds per sec stones explanation |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
94 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
95 |
3808 0.577 6600 1.0 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
96 |
544 2.262 240 1.0 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
97 |
960 1.088 882 1.0 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
98 |
320 0.908 352 1.0 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
99 |
160 1.49 107 1.0 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
100 |
480 1.129 425 1.0 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
101 |
896 1.237 724 1.0 evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
102 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
103 |
640 1.151 555 1.0 harmonic mean" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
results |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
107 |
" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
Benchmarks::SlopstoneBenchmark new runBenchmark |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
Notice: |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
the addInt, addFloat, perform and block benchmarks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
are optimized by the system (the JIT) and are therefore |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
too short to be measured reasonably on most systems |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
113 |
(time below 10ms) |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
114 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
115 |
P6/400 linux/egcs/elf |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
116 |
3808 0.001 3808000 576.97 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
544 0.001 544000 2266.67 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
960 0.119 8067 9.14652 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
119 |
320 0.08 4000 11.3636 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
120 |
160 0.06 2667 24.9221 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
480 0.001 480000 1129.41 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
896 0.001 896000 1237.57 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
124 |
640 0.00664 96275 173.513 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
125 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
126 |
P6/266 linux/gcc/elf |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
127 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
128 |
3808 0.001 3808000 576.97 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
544 0.001 544000 2266.67 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
130 |
960 0.137 7007 7.94478 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
320 0.114 2807 7.97448 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
160 0.106 1509 14.1069 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
480 0.001 480000 1129.41 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
896 0.001 896000 1237.57 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
640 0.00773 82698 149.043 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
137 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
138 |
alpha/433 osf1/cc |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
139 |
3808 0.001 3808000 576.97 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
544 0.001 544000 2266.67 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
960 0.152 6316 7.16076 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
320 0.131 2443 6.93963 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
160 0.102 1569 14.6601 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
144 |
480 0.001 480000 1129.41 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
145 |
896 0.001 896000 1237.57 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
640 0.00796 80317 144.753 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
148 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
149 |
Ultra/250 solaris2.6 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
150 |
3808 0.001 3808000 576.97 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
151 |
544 0.001 544000 2266.67 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
152 |
960 0.154 6234 7.06776 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
153 |
320 0.17 1882 5.34759 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
154 |
160 0.113 1416 13.233 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
155 |
480 0.001 480000 1129.41 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
156 |
896 0.001 896000 1237.57 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
157 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
158 |
640 0.0084 76116 137.181 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
159 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
160 |
P5/200 linux/gcc/elf (slow memory interface - notebook) |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
161 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
162 |
3808 0.001 3808000 576.97 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
163 |
544 0.001 544000 2266.67 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
164 |
960 0.315 3048 3.45535 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
165 |
320 0.277 1155 3.28192 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
166 |
160 0.206 777 7.25887 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
167 |
480 0.002 240000 564.706 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
168 |
896 0.001 896000 1237.57 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
169 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
170 |
640 0.0120056 53276 96.0165 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
171 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
172 |
P5/133 linux/gcc/a.out |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
173 |
3808 0.002 1904000 288.485 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
174 |
544 0.002 272000 1133.33 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
175 |
960 0.36 2667 3.02343 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
176 |
320 0.293 1092 3.1027 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
177 |
160 0.241 664 6.20468 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
178 |
480 0.002 240000 564.706 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
179 |
896 0.001 896000 1237.57 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
180 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
181 |
640 0.0153779 41593 74.9606 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
182 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
183 |
alpha/233 osf1/cc |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
184 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
185 |
3808 0.001 3808000 576.97 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
186 |
544 0.001 544000 2266.67 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
187 |
960 0.57 1684 1.90954 access strings |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
188 |
320 0.979 327 0.928591 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
189 |
160 0.71 225 2.10609 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
190 |
480 0.001 480000 1129.41 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
191 |
896 0.001 896000 1237.57 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
192 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
193 |
640 0.0169151 37813 68.1485 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
194 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
195 |
ss10/40 solaris 2.5 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
196 |
3808 0.006 634667 96.1616 add integers |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
197 |
544 0.005 108800 453.333 add floats |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
198 |
320 0.918 349 0.990295 create objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
199 |
160 0.694 231 2.15465 copy objects |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
200 |
480 0.006 80000 188.235 perform selectors |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
201 |
896 0.005 179200 247.514 create & evaluate blocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
202 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
203 |
640 0.0480143 13321 24.0082 harmonic mean |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
204 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
205 |
" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
206 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
207 |
! ! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
208 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
209 |
!BenchmarkSlopstone methodsFor:'benchmarking'! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
210 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
211 |
execute |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
212 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
213 |
| n nTests iters times speeds stones scale printA printB printC param |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
214 |
count speed0 expln block time iter speed stone harMean hm power | |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
215 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
216 |
Transcript cr; cr; show: 'Starting benchmarks...'. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
217 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
218 |
n := 16000. "Number of times each test block will be evaluated." |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
219 |
n > 16383 ifTrue: [self halt: 'Count exceeded max small int for ST/V-DOS.']. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
220 |
nTests := testParams size. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
221 |
nTests = testBlocks size ifFalse: [self halt: 'Inconsistent test count.']. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
222 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
223 |
iters := OrderedCollection new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
224 |
times := OrderedCollection new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
225 |
speeds := OrderedCollection new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
226 |
stones := OrderedCollection new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
227 |
scale := 1000. "So iterations can be reported as 1000s of iterations" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
228 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
229 |
"The following blocks are restricted to two args by ST/V-DOS." |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
230 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
231 |
printA := |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
232 |
[:iter1 :time1 | |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
233 |
Transcript cr. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
234 |
Transcript nextPutAll: (iter1 / scale) rounded printString. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
235 |
Transcript nextPutAll: ' '. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
236 |
Transcript nextPutAll: time1 printString. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
237 |
Transcript nextPutAll: ' ']. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
238 |
printB := |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
239 |
[:speed1 :slop1 | |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
240 |
Transcript nextPutAll: (speed1 / scale) rounded printString. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
241 |
Transcript nextPutAll: ' '. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
242 |
Transcript nextPutAll: slop1 printString. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
243 |
Transcript nextPutAll: ' ']. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
244 |
printC := |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
245 |
[:expln1 | |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
246 |
Transcript show: expln1]. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
247 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
248 |
Transcript show: ' |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
249 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
250 |
1000s time 1000s of |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
251 |
itera- sec- iterations slop- |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
252 |
tions onds per sec stones explanation |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
253 |
'. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
254 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
255 |
1 to: nTests do: |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
256 |
[:i | |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
257 |
param := testParams at: i. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
258 |
count := param at: 1. "repetitions of a test inside its block" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
259 |
speed0 := (param at: 2) * scale. "iters/sec for a one-slopstone machine" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
260 |
expln := param at: 3. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
261 |
block := testBlocks at: i. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
262 |
time := Time millisecondsToRun: [n timesRepeat: block]. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
263 |
time := (time max: 1) / 1000.0. "time is now in seconds" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
264 |
iter := count * n. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
265 |
speed := iter / time. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
266 |
stone := speed / speed0. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
267 |
iters add: iter. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
268 |
times add: time. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
269 |
speeds add: speed. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
270 |
stones add: stone. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
271 |
printA value: iter value: time. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
272 |
printB value: speed value: stone. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
273 |
printC value: expln.]. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
274 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
275 |
harMean := |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
276 |
[:numbers | |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
277 |
hm := 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
278 |
power := 1 / nTests. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
279 |
numbers do: [:number | hm := hm * (number raisedTo: power)]. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
280 |
hm]. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
281 |
Transcript cr. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
282 |
printA value: (harMean value: iters) value: (harMean value: times). |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
283 |
printB value: (harMean value: speeds) value: (harMean value: stones). |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
284 |
printC value: 'harmonic mean'. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
285 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
286 |
Transcript cr; cr; show: 'Benchmarks complete.'; cr |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
287 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
288 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
289 |
extendedSetup |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
290 |
self setup. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
291 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
292 |
testParams |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
293 |
add: #(238 6600 'add integer vars *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
294 |
add: #( 34 240 'add float vars *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
295 |
add: #( 56 724 'create blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
296 |
add: #( 56 724 'evaluate blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
297 |
add: #( 56 724 'create self blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
298 |
add: #( 56 724 'evaluate self blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
299 |
add: #( 56 724 'create & evaluate self blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
300 |
add: #( 56 724 'create full blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
301 |
add: #( 56 724 'evaluate full blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
302 |
add: #( 56 724 'create & evaluate full blocks *'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
303 |
yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
304 |
self setup4 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
305 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
306 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
307 |
runBenchmark |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
308 |
"SlopstoneBenchmark new runBenchmark" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
309 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
310 |
self setup. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
311 |
self execute |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
312 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
313 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
314 |
runBenchmark2 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
315 |
"SlopstoneBenchmark new runBenchmark2" |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
316 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
317 |
self extendedSetup. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
318 |
self execute |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
319 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
320 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
321 |
setup |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
322 |
self setup1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
323 |
self setup2. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
324 |
self setup3. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
325 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
326 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
327 |
setup1 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
328 |
"Numbers in testParams represent the following: |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
329 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
330 |
Column 1 number of internal repetitions for each test inside its block |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
331 |
Column 2 thousands of iterations per second for a one-slopstone machine." |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
332 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
333 |
testParams := OrderedCollection new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
334 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
335 |
testParams |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
336 |
add: #(238 6600 'add integers'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
337 |
add: #( 34 240 'add floats'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
338 |
add: #( 60 882 'access strings'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
339 |
add: #( 20 352 'create objects'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
340 |
add: #( 10 107 'copy objects'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
341 |
add: #( 30 425 'perform selectors'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
342 |
add: #( 56 724 'create & evaluate blocks'); |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
343 |
yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
344 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
345 |
testBlocks := OrderedCollection new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
346 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
347 |
"In the integer addition test, I originally had 340 internal repetitions. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
348 |
This caused the Digitalk compiler to blow up. The ParcPlace compiler compiled |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
349 |
it ok but interestingly addition performed at slightly more than 50% of the |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
350 |
performance with an internal count of 238. Perhaps something magical happens |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
351 |
at 256." |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
352 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
353 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
354 |
setup2 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
355 |
testBlocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
356 |
add: [1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
357 |
1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
358 |
1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
359 |
1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
360 |
1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
361 |
1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
362 |
1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
363 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
364 |
add: [1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
365 |
1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0+1.0] |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
366 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
367 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
368 |
setup3 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
369 |
testBlocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
370 |
add: ['a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
371 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
372 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
373 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
374 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
375 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
376 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
377 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
378 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
379 |
'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1. 'a' at: 1]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
380 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
381 |
add: [Object new. Object new. Object new. Object new. Object new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
382 |
Object new. Object new. Object new. Object new. Object new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
383 |
Object new. Object new. Object new. Object new. Object new. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
384 |
Object new. Object new. Object new. Object new. Object new]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
385 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
386 |
add: [Object new copy copy copy copy copy copy copy copy copy copy]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
387 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
388 |
add: [0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
389 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
390 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
391 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
392 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
393 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
394 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
395 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
396 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
397 |
0 perform: #yourself. 0 perform: #yourself. 0 perform: #yourself]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
398 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
399 |
add: [[] value. [] value. [] value. [] value. [] value. [] value. [] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
400 |
[] value. [] value. [] value. [] value. [] value. [] value. [] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
401 |
[] value. [] value. [] value. [] value. [] value. [] value. [] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
402 |
[] value. [] value. [] value. [] value. [] value. [] value. [] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
403 |
[] value. [] value. [] value. [] value. [] value. [] value. [] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
404 |
[] value. [] value. [] value. [] value. [] value. [] value. [] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
405 |
[] value. [] value. [] value. [] value. [] value. [] value. [] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
406 |
[] value. [] value. [] value. [] value. [] value. [] value. [] value] |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
407 |
! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
408 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
409 |
setup4 |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
410 |
|b v| |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
411 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
412 |
testBlocks |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
413 |
add: [b := 1. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
414 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
415 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
416 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
417 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
418 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
419 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
420 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
421 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
422 |
add: [b := 1.0. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
423 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+ |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
424 |
b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b+b]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
425 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
426 |
add: [[]. []. [] . [] . [] . [] . [] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
427 |
[] . [] . [] . [] . [] . [] . [] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
428 |
[] . [] . [] . [] . [] . [] . [] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
429 |
[] . [] . [] . [] . [] . [] . [] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
430 |
[] . [] . [] . [] . [] . [] . [] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
431 |
[] . [] . [] . [] . [] . [] . [] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
432 |
[] . [] . [] . [] . [] . [] . [] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
433 |
[] . [] . [] . [] . [] . [] . [] ]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
434 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
435 |
add: [b := []. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
436 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
437 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
438 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
439 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
440 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
441 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
442 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
443 |
b value. b value. b value. b value. b value. b value. b value]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
444 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
445 |
add: [[self]. [self]. [self] . [self] . [self] . [self] . [self] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
446 |
[self] . [self] . [self] . [self] . [self] . [self] . [self] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
447 |
[self] . [self] . [self] . [self] . [self] . [self] . [self] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
448 |
[self] . [self] . [self] . [self] . [self] . [self] . [self] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
449 |
[self] . [self] . [self] . [self] . [self] . [self] . [self] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
450 |
[self] . [self] . [self] . [self] . [self] . [self] . [self] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
451 |
[self] . [self] . [self] . [self] . [self] . [self] . [self] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
452 |
[self] . [self] . [self] . [self] . [self] . [self] . [self] ]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
453 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
454 |
add: [b := [self]. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
455 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
456 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
457 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
458 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
459 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
460 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
461 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
462 |
b value. b value. b value. b value. b value. b value. b value]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
463 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
464 |
add: [[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
465 |
[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
466 |
[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
467 |
[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
468 |
[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
469 |
[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
470 |
[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
471 |
[self] value. [self] value. [self] value. [self] value. [self] value. [self] value. [self] value]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
472 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
473 |
add: [[ v := 0]. [v := 0]. [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
474 |
[v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
475 |
[v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
476 |
[v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
477 |
[v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
478 |
[v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
479 |
[v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
480 |
[v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] . [v := 0] ]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
481 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
482 |
add: [b := [v := 0]. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
483 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
484 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
485 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
486 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
487 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
488 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
489 |
b value. b value. b value. b value. b value. b value. b value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
490 |
b value. b value. b value. b value. b value. b value. b value]; |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
491 |
|
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
492 |
add: [[v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
493 |
[v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
494 |
[v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
495 |
[v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
496 |
[v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
497 |
[v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
498 |
[v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
499 |
[v := 0] value. [self] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value. [v := 0] value] |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
500 |
! ! |
44e0b30db8c0
Initial commit of Smalltalk/X benchmark set.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
501 |