summaryrefslogtreecommitdiff
path: root/test/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'test/benchmarks')
-rw-r--r--test/benchmarks/src/scala/collection/parallel/benchmarks/hashtries/ParallelHashTries.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/benchmarks/src/scala/collection/parallel/benchmarks/hashtries/ParallelHashTries.scala b/test/benchmarks/src/scala/collection/parallel/benchmarks/hashtries/ParallelHashTries.scala
index 747178c1a4..fd6e1a8559 100644
--- a/test/benchmarks/src/scala/collection/parallel/benchmarks/hashtries/ParallelHashTries.scala
+++ b/test/benchmarks/src/scala/collection/parallel/benchmarks/hashtries/ParallelHashTries.scala
@@ -29,7 +29,10 @@ trait ParallelHashTrieBenches[K, V] extends StandardParallelIterableBench[(K, V)
extends IterableBench with StandardParallelIterableBench[(K, V), ParallelHashTrie[K, V]] {
var result: Int = 0
def comparisonMap = collection.Map()
- def runseq = result = this.seqcoll.map(operators.mapper2).size
+ def runseq = {
+ val r = this.seqcoll.asInstanceOf[collection.immutable.HashMap[K, V]].map(operators.mapper2)
+ result = r.size
+ }
def runpar = {
result = this.parcoll.map(operators.mapper2).size
//println(collection.parallel.immutable.ParallelHashTrie.totalcombines)