未验证 提交 90b349e8 编写于 作者: D Dejan Mijić 提交者: GitHub

Include rediculous in benchmarks (#94)

上级 e5ded696
......@@ -38,6 +38,26 @@ class PutBenchmarks {
.unsafeRunSync
}
@Benchmark
def rediculous(): Unit = {
import java.net.InetSocketAddress
import cats.effect._
import cats.implicits._
import fs2.io.tcp._
import io.chrisdavenport.rediculous._
val connection =
for {
blocker <- Blocker[IO]
sg <- SocketGroup[IO](blocker)
c <- RedisConnection.queued[IO](sg, new InetSocketAddress(RedisHost, RedisPort), maxQueued = 10000, workers = 2)
} yield c
connection
.use(c => items.traverse_(i => RedisCommands.set[IO](i, i).run(c)))
.unsafeRunSync
}
@Benchmark
def redis4cats(): Unit = {
import cats.effect.IO
......
......@@ -53,7 +53,8 @@ lazy val benchmarks =
crossScalaVersions -= Scala211,
skip in publish := true,
libraryDependencies ++= Seq(
"dev.profunktor" %% "redis4cats-effects" % "0.10.2",
"io.laserdisc" %% "laserdisc-fs2" % "0.4.0"
"dev.profunktor" %% "redis4cats-effects" % "0.10.2",
"io.chrisdavenport" %% "rediculous" % "0.0.1",
"io.laserdisc" %% "laserdisc-fs2" % "0.4.0"
)
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册