Skip to content

Commit

Permalink
Clean up benchmarks' dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
danicheg committed Dec 4, 2022
1 parent 48def2a commit 0be5930
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
12 changes: 0 additions & 12 deletions bench/src/main/scala/cats/bench/MapMonoidBench.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ import cats.instances.list._
import cats.instances.int._
import cats.instances.map._

import scalaz.std.anyVal._
import scalaz.std.list._
import scalaz.std.map._

import org.openjdk.jmh.annotations.{Benchmark, Scope, State}

@State(Scope.Benchmark)
Expand All @@ -50,11 +46,6 @@ class MapMonoidBench {
cats.Monoid[Map[String, Int]].combine(acc, m)
}

@Benchmark def combineScalaz: Map[String, Int] =
maps.foldLeft(Map.empty[String, Int]) { case (acc, m) =>
scalaz.Monoid[Map[String, Int]].append(acc, m)
}

@Benchmark def combineDirect: Map[String, Int] =
maps.foldLeft(Map.empty[String, Int]) { case (acc, m) =>
m.foldLeft(acc) { case (m, (k, v)) =>
Expand All @@ -74,7 +65,4 @@ class MapMonoidBench {

@Benchmark def foldMapCats: Map[String, Int] =
cats.Foldable[List].foldMap(maps)(identity)

@Benchmark def foldMapScalaz: Map[String, Int] =
scalaz.Foldable[List].foldMap(maps)(identity)
}
3 changes: 0 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,6 @@ lazy val bench = project
.settings(moduleName := "cats-bench")
.settings(commonJvmSettings)
.settings(
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.3.6"
),
evictionErrorLevel := Level.Warn
)
.enablePlugins(NoPublishPlugin, JmhPlugin)
Expand Down

0 comments on commit 0be5930

Please sign in to comment.