1
package scala.collection
7
class Dummy(val a: Int) extends math.Ordered[Dummy] {
8
def compare(other: Dummy) = this.a - other.a
9
override def toString = a.toString
15
val data = util.Random.shuffle((0 until sz) map { new Dummy(_) }) toArray;
22
object RandomAVL extends testing.Benchmark {
25
val avl = new collection.mutable.TreeSet[Dummy]
38
object RandomImmutableTreeSet extends testing.Benchmark {
41
var tree = new collection.immutable.TreeSet[Dummy]
54
object RandomJavaTreeSet extends testing.Benchmark {
57
val tree = new java.util.TreeSet[Dummy]