@@ -10,7 +10,7 @@ import collection.immutable.{Set, HashMap}
10
10
11
11
case class Experiment (exclude : Set [String ], warmUpIterations : Int = 5 ) {
12
12
13
- val adaptorsToTest = Experiment .allAdaptors.filterNot(s => exclude.contains(s.getName))
13
+ val adaptorsToTest = Experiment .allAdaptors.filterNot(s => exclude.contains(s.getName.toLowerCase ))
14
14
15
15
val categories = Category
16
16
.getFilesMatching(" data" , f => f.isDirectory)
@@ -19,9 +19,9 @@ case class Experiment(exclude: Set[String], warmUpIterations: Int=5) {
19
19
def measureParsing (iterations : Int ): Array [(String , HashMap [String , Measurement ])] = {
20
20
def run (iterations : Int , libraryAdaptors : Seq [LibraryAdaptor ]): Array [(String , HashMap [String , Measurement ])] = {
21
21
22
- categories.flatMap(category => ( libraryAdaptors.map {
23
- adaptor => ( category.name -> category.measure(adaptor, doMap = false , iterations, warmUpIterations) )
24
- }))
22
+ categories.flatMap(category => libraryAdaptors.map {
23
+ adaptor => category.name -> category.measure(adaptor, doMap = false , iterations, warmUpIterations)
24
+ })
25
25
}
26
26
27
27
println(" Parsing measurement (%d warmup, %d iterations on %s)..." .format(warmUpIterations, iterations, adaptorsToTest.map(_.getName).mkString(" , " )))
@@ -31,9 +31,9 @@ case class Experiment(exclude: Set[String], warmUpIterations: Int=5) {
31
31
def measureMapping (iterations : Int ): Array [(String , HashMap [String , Measurement ])] = {
32
32
def run (iterations : Int , libraryAdaptors : Seq [LibraryAdaptor ]): Array [(String , HashMap [String , Measurement ])] = {
33
33
34
- categories.flatMap(category => ( libraryAdaptors.map {
35
- adaptor => ( category.name -> category.measure(adaptor, doMap = true , iterations, warmUpIterations) )
36
- }))
34
+ categories.flatMap(category => libraryAdaptors.map {
35
+ adaptor => category.name -> category.measure(adaptor, doMap = true , iterations, warmUpIterations)
36
+ })
37
37
}
38
38
39
39
val targetAdaptors = adaptorsToTest.filter(_.hasMap)
0 commit comments