Fixed JavaNativeMethodImpl_OpenJDK6 class>>invoke:receiver:arguments:context:constructor:
"{ Package: 'stx:libjava/benchmarks' }"
JavaBenchmark subclass:#Ary
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'Benchmarks-Java-Micro'
!
!Ary methodsFor:'running'!
runAryTest: x with: y with: n
1 to: 1000 do: [:ignored|
n to: 1 by: -1 do: [:i| y at: i put: (y at: i) + (x at: i)] ].
!
runBenchmarkS:n
| x y |
x := (1 to:n) asArray.
y := Array new:n withAll:0.
^ Time
millisecondsToRun:[
self
runAryTest:x
with:y
with:n
].
! !
!Ary class methodsFor:'documentation'!
version_SVN
^ '$Id:: $'
! !