Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
"{ Package: 'stx:libjava/benchmarks' }"
JavaBenchmark subclass:#OverloadedMethods
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'Benchmarks-Java-Micro'
!
!OverloadedMethods methodsFor:'running'!
doSmth_c:c
^self
!
doSmth_i: i
^self
!
doSmth_o:o
^self
!
runBenchmarkS2J:n
| inst |
inst := JAVA stx libjava benchmarks OverloadedMethods new.
^ Time
millisecondsToRun:[
1 to:n do:[:idx |
inst doSmth:0.
inst doSmth:$c.
inst doSmth:inst.
].
].
"Created: / 31-10-2012 / 23:37:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
runBenchmarkS:n
| inst |
inst := self class new.
^ Time
millisecondsToRun:[
1 to:n do:[:i |
inst doSmth_i:0.
inst doSmth_c:$c.
inst doSmth_o:inst.
]
].
! !
!OverloadedMethods class methodsFor:'documentation'!
version_SVN
^ '$Id:: $'
! !