author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 14 Feb 2013 16:15:31 +0000 | |
branch | development |
changeset 2069 | 75d40b7b986f |
parent 2014 | 9fa66342102b |
child 2380 | 9195eccdcbd9 |
permissions | -rw-r--r-- |
1761 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
3 |
||
4 |
New code and modifications done at SWING Research Group [1]: |
|
5 |
||
6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
|
7 |
SWING Research Group, Czech Technical University in Prague |
|
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
16 |
[1] Code written at SWING Research Group contains a signature |
|
17 |
of one of the above copright owners. For exact set of such code, |
|
18 |
see the differences between this version and version stx:libjava |
|
19 |
as of 1.9.2010 |
|
20 |
" |
|
21 |
"{ Package: 'stx:libjava/benchmarks' }" |
|
22 |
||
23 |
JavaBenchmark subclass:#MethodInvocation |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Benchmarks-Java-Micro' |
|
28 |
! |
|
29 |
||
30 |
!MethodInvocation class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
35 |
||
36 |
New code and modifications done at SWING Research Group [1]: |
|
37 |
||
38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
|
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
48 |
[1] Code written at SWING Research Group contains a signature |
|
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
51 |
as of 1.9.2010 |
|
52 |
||
53 |
" |
|
54 |
! |
|
55 |
||
56 |
history |
|
57 |
||
58 |
"Created: #run / 13-09-2012 / 22:27:57 / mh <marcel.hlopko@fit.cvut.cz>" |
|
59 |
! ! |
|
60 |
||
61 |
!MethodInvocation methodsFor:'running'! |
|
62 |
||
63 |
doSmth |
|
64 |
^self |
|
65 |
! |
|
66 |
||
1803 | 67 |
runBenchmarkS2J:n |
68 |
| inst | |
|
69 |
||
70 |
inst := JAVA stx libjava benchmarks MethodInvocation new. |
|
71 |
^ Time |
|
72 |
millisecondsToRun:[ |
|
73 |
1 to:n do:[:idx | |
|
74 |
inst doSmth |
|
75 |
]. |
|
76 |
]. |
|
77 |
||
78 |
"Created: / 04-11-2012 / 21:22:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
79 |
! |
|
80 |
||
1762 | 81 |
runBenchmarkS:n |
82 |
| inst | |
|
83 |
||
1770 | 84 |
inst := self class new. |
1762 | 85 |
^ Time |
1781 | 86 |
millisecondsToRun:[ |
87 |
1 to: n do: [:idx| |
|
1762 | 88 |
inst doSmth |
89 |
] ]. |
|
1761 | 90 |
! ! |
91 |
||
92 |
!MethodInvocation class methodsFor:'documentation'! |
|
93 |
||
2069 | 94 |
version_CVS |
95 |
^ '$Header$' |
|
96 |
! |
|
97 |
||
2014
9fa66342102b
Fixed JavaBenchmarkRunner: when no smalltalk class is found, create one on demand.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1818
diff
changeset
|
98 |
version_HG |
9fa66342102b
Fixed JavaBenchmarkRunner: when no smalltalk class is found, create one on demand.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1818
diff
changeset
|
99 |
|
9fa66342102b
Fixed JavaBenchmarkRunner: when no smalltalk class is found, create one on demand.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1818
diff
changeset
|
100 |
^ '$Changeset: <not expanded> $' |
9fa66342102b
Fixed JavaBenchmarkRunner: when no smalltalk class is found, create one on demand.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1818
diff
changeset
|
101 |
! |
9fa66342102b
Fixed JavaBenchmarkRunner: when no smalltalk class is found, create one on demand.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1818
diff
changeset
|
102 |
|
1761 | 103 |
version_SVN |
2014
9fa66342102b
Fixed JavaBenchmarkRunner: when no smalltalk class is found, create one on demand.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1818
diff
changeset
|
104 |
^ '§Id:: §' |
1761 | 105 |
! ! |
2014
9fa66342102b
Fixed JavaBenchmarkRunner: when no smalltalk class is found, create one on demand.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1818
diff
changeset
|
106 |