Skip to content

Commit

Permalink
Update benchmark Model
Browse files Browse the repository at this point in the history
  • Loading branch information
takapi327 committed Dec 31, 2024
1 parent 5306e42 commit 2c600d9
Showing 1 changed file with 13 additions and 32 deletions.
45 changes: 13 additions & 32 deletions benchmark/src/main/scala/benchmark/Model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ case class Model20(
) derives Table

object Model20:
given Codec[Model20] =
Codec[(Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int)]
.to[Model20]
given Codec[Model20] = (
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *:
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *:
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *:
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int]
).to[Model20]

case class Model25(
c1: Int,
Expand Down Expand Up @@ -97,35 +100,13 @@ case class Model25(
) derives Table

object Model25:
given Codec[Model25] = Codec[
(
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int,
Int
)
].to[Model25]
given Codec[Model25] = (
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *:
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *:
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *:
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *:
Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int] *: Codec[Int]
).to[Model25]

case class City(
id: Int,
Expand Down

0 comments on commit 2c600d9

Please sign in to comment.