Updated to match Mercurial revision a00302fe5083 with two tweaks:
- JavaConstants: conditional compilation of __ACX_MULTIVERS flag
(not present in eXept's stc/librun)
- JavaNativeMethod: disabled call to __jbindnative()
(not present in eXept's librun)
"{ Package: 'stx:libjava/benchmarks' }"
JavaBenchmark subclass:#Hash
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'Benchmarks-Java-Micro'
!
!Hash methodsFor:'running'!
runBenchmarkS:n
| count table |
count := 0.
table := Dictionary new:n + (n // 5).
^ Time
millisecondsToRun:[
1 to:n do:[:each |
table at:(each printStringRadix:16) put:each
].
1 to:n do:[:each |
(table includesKey:(each printStringRadix:10)) ifTrue:[
count := count + 1
]
].
].
! !
!Hash class methodsFor:'documentation'!
version_CVS
^ '$Header: /cvs/stx/stx/libjava/benchmarks/Hash.st,v 1.3 2013-09-06 00:41:32 vrany Exp $'
!
version_HG
^ '$Changeset: <not expanded> $'
!
version_SVN
^ '§Id:: §'
! !