diff options
author | Aleksandar Prokopec <axel22@gmail.com> | 2012-02-03 16:58:54 +0100 |
---|---|---|
committer | Aleksandar Prokopec <axel22@gmail.com> | 2012-02-03 16:58:54 +0100 |
commit | a015c08fda8b8556345a802d60557a3ecd627ccc (patch) | |
tree | fcd177766e7a394116713b3d0464f012f7482f4d /test/files/run/ctries | |
parent | 86946630e9a1240fb9a378b2ec62e78b521f4320 (diff) | |
download | scala-a015c08fda8b8556345a802d60557a3ecd627ccc.tar.gz scala-a015c08fda8b8556345a802d60557a3ecd627ccc.tar.bz2 scala-a015c08fda8b8556345a802d60557a3ecd627ccc.zip |
Add tests for parallel Ctrie.
Changed parameters in some tests to speed them up.
Diffstat (limited to 'test/files/run/ctries')
-rw-r--r-- | test/files/run/ctries/iterator.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/files/run/ctries/iterator.scala b/test/files/run/ctries/iterator.scala index 1cef4f66ea..4bbf9009f0 100644 --- a/test/files/run/ctries/iterator.scala +++ b/test/files/run/ctries/iterator.scala @@ -141,8 +141,8 @@ object IteratorSpec extends Spec { "be consistent when taken with concurrent modifications" in { val sz = 25000 - val W = 25 - val S = 10 + val W = 15 + val S = 5 val checks = 5 val ct = new Ctrie[Wrap, Int] for (i <- 0 until sz) ct.put(new Wrap(i), i) @@ -182,8 +182,8 @@ object IteratorSpec extends Spec { "be consistent with a concurrent removal with a well defined order" in { val sz = 150000 - val sgroupsize = 40 - val sgroupnum = 20 + val sgroupsize = 10 + val sgroupnum = 5 val removerslowdown = 50 val ct = new Ctrie[Wrap, Int] for (i <- 0 until sz) ct.put(new Wrap(i), i) @@ -201,7 +201,7 @@ object IteratorSpec extends Spec { def consistentIteration(it: Iterator[(Wrap, Int)]) = { class Iter extends Thread { override def run() { - val elems = it.toSeq + val elems = it.toBuffer if (elems.nonEmpty) { val minelem = elems.minBy((x: (Wrap, Int)) => x._1.i)._1.i assert(elems.forall(_._1.i >= minelem)) @@ -224,8 +224,8 @@ object IteratorSpec extends Spec { "be consistent with a concurrent insertion with a well defined order" in { val sz = 150000 - val sgroupsize = 30 - val sgroupnum = 30 + val sgroupsize = 10 + val sgroupnum = 10 val inserterslowdown = 50 val ct = new Ctrie[Wrap, Int] |