s/BenchmarkRunnerExecutor.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 12 Aug 2013 02:12:31 +0100
changeset 152 ca3d03cb5499
parent 145 98ebd63b85c9
child 186 d444d8e7d29b
permissions -rw-r--r--
Fixes for Pharo.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"{ Package: 'jv:calipel/s' }"
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
139
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
     3
BenchmarkExecutor subclass:#BenchmarkRunnerExecutor
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
	instanceVariableNames:'transcript'
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
	classVariableNames:''
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
	poolDictionaries:''
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
	category:'CalipeL-S-Core-Runner'
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
!
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
139
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
    10
!BenchmarkRunnerExecutor class methodsFor:'documentation'!
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
documentation
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
" 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
  Replace 'Object', 'NewClass1' and
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
  the empty string arguments by true values.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
  Install (or change) the class by 'accepting',
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
  either via the menu or the keyboard (usually CMD-A).
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21
  You can also change the category simply by editing
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
  the categoryString and accepting.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
  To be nice to others (and yourself later), do not forget to
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
  add some documentation; preferably under the classes documentation
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
  protocol.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
  (see the `create documentation stubs' item in the methodList menu;
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
   switch from instance to class to find this menu item.)
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
  Notice, that ST/X uses the convention to document the class using
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
  comment-only class methods (however, ST80 comments are supported and
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
  can be changed via the class-documentation menu).
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
  Notice: 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
    the above text has been extracted from the classes documentation method.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
    Any change in it will be lost if you 'accept' here.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
    To change the documentation, switch to the documentation method and 'accept' any changes there.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    40
 
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    41
"
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
! !
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
139
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
    44
!BenchmarkRunnerExecutor class methodsFor:'instance creation'!
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
139
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
    46
new
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
    47
    "return an initialized instance"
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    48
139
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
    49
    ^ self basicNew initialize.
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    50
! !
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    51
140
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    52
!BenchmarkRunnerExecutor methodsFor:'executing-private'!
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    53
141
4fbcea2829d2 Parameter values for parameters without default must be specified...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 140
diff changeset
    54
execute: aBenchmarkInstance result: aBenchmarkResult parameters: aCollection
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    55
    | nm |
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    56
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    57
    nm := aBenchmarkInstance name.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    58
    transcript next: (25 - nm size) put: Character space.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    59
    transcript nextPutAll: nm.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    60
    transcript nextPutAll: '...'.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    61
145
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    62
    [
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    63
        super execute: aBenchmarkInstance result: aBenchmarkResult parameters: aCollection.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    64
        transcript nextPutAll: 'OK ['.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    65
        transcript nextPutAll: (aBenchmarkResult outcomes detect:[:o|o benchmark == aBenchmarkInstance ]) time printString.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    66
        transcript nextPutAll: ']'.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    67
        aCollection notEmpty ifTrue:[        
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    68
            transcript nextPutAll: ' {'.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    69
            (aCollection asSortedCollection:[:a :b | a key name < b key name ]) do:[:paramAndValue|
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    70
                transcript nextPutAll: paramAndValue key name.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    71
                transcript nextPutAll: '='.        
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    72
                transcript nextPutAll: paramAndValue value storeString.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    73
            ] separatedBy:[
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    74
                transcript nextPutAll: ', '.            
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    75
            ].
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    76
            transcript nextPutAll: '}'.
141
4fbcea2829d2 Parameter values for parameters without default must be specified...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 140
diff changeset
    77
        ].
145
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    78
        transcript nextPutAll: '
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    79
'.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    80
    ] on: BenchmarkExecutionError do:[:ex|
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    81
        transcript nextPutAll:  '!!!!!! ERROR: '.
152
ca3d03cb5499 Fixes for Pharo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 145
diff changeset
    82
        transcript nextPutAll: ex description.
ca3d03cb5499 Fixes for Pharo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 145
diff changeset
    83
        transcript nextPutAll:'
ca3d03cb5499 Fixes for Pharo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 145
diff changeset
    84
'.
145
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    85
        ex pass.
98ebd63b85c9 Catch and report errors during execution
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 141
diff changeset
    86
        ^ self.
141
4fbcea2829d2 Parameter values for parameters without default must be specified...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 140
diff changeset
    87
    ].
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    88
140
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    89
    "Created: / 27-07-2013 / 12:33:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
152
ca3d03cb5499 Fixes for Pharo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 145
diff changeset
    90
    "Modified: / 12-08-2013 / 00:04:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
140
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    91
!
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    92
140
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    93
setUp:aBenchmarkInstance parameters: aCollection
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    94
    transcript nextPutAll:'S..'.   
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    95
    aCollection do:[:each|
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    96
        aBenchmarkInstance setUpParameter: each key value: each value
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    97
    ].
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
    98
    aBenchmarkInstance setUp.
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    99
140
425f8c6946f4 Introduced BenchmarkParameter class. Added parameter combination...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 139
diff changeset
   100
    "Created: / 27-07-2013 / 12:33:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   101
!
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   102
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   103
tearDown: aBenchmarkInstance
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   104
    transcript nextPutAll: 'T..'.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   105
    super tearDown: aBenchmarkInstance
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   106
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   107
    "Created: / 24-06-2013 / 01:21:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   108
!
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   109
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   110
timeIt: aBenchmarkInstance
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   111
    transcript nextPutAll: 'B..'.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   112
    ^super timeIt: aBenchmarkInstance.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   113
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   114
    "Created: / 24-06-2013 / 01:22:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   115
!
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   116
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   117
warmUp: aBenchmarkInstance
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   118
    transcript nextPutAll: 'W..'.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   119
    super warmUp: aBenchmarkInstance.
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   120
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   121
    "Created: / 24-06-2013 / 01:21:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   122
! !
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   123
139
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   124
!BenchmarkRunnerExecutor methodsFor:'initialization'!
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   125
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   126
initialize
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   127
    "Invoked when a new instance is created."
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   128
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   129
    super initialize.
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   130
    transcript := BenchmarkPlatform current stderr.
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   131
    (Smalltalk isSmalltalkX and:[Transcript isView]) ifTrue:[
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   132
        transcript := Transcript
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   133
    ].
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   134
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   135
    "Created: / 24-06-2013 / 01:16:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   136
! !
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   137
eaf40f3173ad Introduced BenchmarkExecutor - a class responsible for execution of a single benchmark.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   138
!BenchmarkRunnerExecutor class methodsFor:'documentation'!
99
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   139
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   140
version_HG
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   141
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   142
    ^ '$Changeset: <not expanded> $'
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   143
! !
c7755eb4166c Added lost class BenchmarkRunnerResult.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   144