Skip to content

Commit

Permalink
Let's try 10000 messages
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvanoosten committed Nov 14, 2024
1 parent d21aeda commit 1859be6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.util.concurrent.TimeUnit
class ConsumerBenchmark extends ZioBenchmark[Kafka with Producer] {
val topic1 = "topic1"
val nrPartitions = 6
val nrMessages = 50000
val nrMessages = 100000
val kvs: List[(String, String)] = List.tabulate(nrMessages)(i => (s"key$i", s"msg$i"))

override protected def bootstrap: ZLayer[Any, Nothing, Kafka with Producer] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trait ComparisonBenchmark extends ZioBenchmark[Env] {
protected final val nrPartitions: Int = 6
protected final val topicPartitions: List[TopicPartition] =
(0 until nrPartitions).map(TopicPartition(topic1, _)).toList
protected final val numberOfMessages: Int = 50000
protected final val numberOfMessages: Int = 100000
protected final val kvs: Iterable[(String, String)] = Iterable.tabulate(numberOfMessages)(i => (s"key$i", s"msg$i"))

private val javaKafkaConsumer: ZLayer[ConsumerSettings, Throwable, LowLevelKafka] =
Expand Down

0 comments on commit 1859be6

Please sign in to comment.