Benchmarking suite for the Scala collections
Extracted from the benchmarking subproject of the scala/collection-strawman repository.
There are four different benchmarks:
SeqBenchmark
benchmarks the collections extendingimmutable.Seq
:ArraySeq
,List
,LazyList
andVector
.SetBenchmark
benchmarks the collections extendingimmutable.Set
:BitSet
,HashSet
,LongSet
,ListSet
andTreeSet
.MapBenchmark
benchmarks the collections extendingimmutable.Map
:HashMap
,LongMap
andTreeMap
.SeqMapBenchmark
benchmarks the collections extendingimmutable.SeqMap
:ListMap
,OrderedMap
andVectorMap
.
Run the time benchmarks using a command like the following (JMH flags can be specified, see sbt-jmh):
sbt benchmarks/jmh:run -rf json -t 1 -gc true .*