object MapsEval extends App
A small evaluation of the performance of the different map implementations supported by Scala and Java. The evaluation is done w.r.t. typical workloads found in OPAL.
Fill maps... AnyRefMap.add: 0,1480 s Java ConcurrentHashMap.add: 0,1276 s Java HashMap.add: 0,0987 s HashMap.add: 0,5341 s TreeMap.add: 1,1166 s Query maps... AnyRefMap.get: 1,8579 s Java ConcurrentHashMap.get: 1,6284 s Java HashMap.get: 1,3532 s immutable HashMap.get: 1,8304 s immutable TreeMap.get: 19,0907 s
- Source
- MapsEval.scala
- Alphabetic
- By Inheritance
- MapsEval
- App
- DelayedInit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Repetitions: Int
- val Threads: Int
- val anyRefMap: AnyRefMap[T, AnyRef]
- final def args: Array[String]
- Attributes
- protected
- Definition Classes
- App
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final val executionStart: Long
- Definition Classes
- App
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- var hashMap: HashMap[T, AnyRef]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jConcurrentMap: ConcurrentHashMap[T, AnyRef]
- val jHashMap: HashMap[T, AnyRef]
- val ls: Seq[T]
- final def main(args: Array[String]): Unit
- Definition Classes
- App
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- var t: Int
- val theObject: AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- var treeMap: TreeMap[T, AnyRef]
- val trieMap: TrieMap[T, AnyRef]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def delayedInit(body: => Unit): Unit
- Definition Classes
- App → DelayedInit
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) the delayedInit mechanism will disappear
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated