Skip to content

Commit 16caf35

Browse files
committed
Add circe codecs for numbers, separate derivation of codecs for jsoniter-scala-circe benchmarks
1 parent 6fcff37 commit 16caf35

File tree

120 files changed

+1308
-290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1308
-290
lines changed

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ lazy val publishSettings = Seq(
129129
},
130130
mimaReportSignatureProblems := true,
131131
mimaBinaryIssueFilters := Seq(
132-
ProblemFilters.exclude[MissingClassProblem]("com.github.plokhotnyuk.jsoniter_scala.macros.ConfiguredJsonValueCodecWrapper")
132+
ProblemFilters.exclude[DirectMissingMethodProblem]("com.github.plokhotnyuk.jsoniter_scala.circe.CirceCodecs.*"),
133+
ProblemFilters.exclude[DirectMissingMethodProblem]("io.circe.JsoniterScalaCodec.*")
133134
)
134135
)
135136

@@ -219,6 +220,7 @@ lazy val `jsoniter-scala-circe` = crossProject(JVMPlatform, JSPlatform, NativePl
219220
libraryDependencies ++= Seq(
220221
"io.circe" %%% "circe-core" % "0.14.10",
221222
"io.circe" %%% "circe-parser" % "0.14.10" % Test,
223+
"org.scalatestplus" %%% "scalacheck-1-18" % "3.2.19.0" % Test,
222224
"org.scalatest" %%% "scalatest" % "3.2.19" % Test
223225
)
224226
)

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTReading.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class ADTReading extends ADTBenchmark {
3030

3131
@Benchmark
3232
def circeJsoniter(): ADTBase = {
33-
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceEncodersDecoders._
3433
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
3534
import com.github.plokhotnyuk.jsoniter_scala.core._
3635
import io.circe.Decoder

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ADTWriting.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class ADTWriting extends ADTBenchmark {
3131

3232
@Benchmark
3333
def circeJsoniter(): Array[Byte] = {
34-
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceEncodersDecoders._
3534
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
3635
import com.github.plokhotnyuk.jsoniter_scala.core._
3736
import io.circe.syntax._

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsReading.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class AnyValsReading extends AnyValsBenchmark {
3030

3131
@Benchmark
3232
def circeJsoniter(): AnyVals = {
33-
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceEncodersDecoders._
3433
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
3534
import com.github.plokhotnyuk.jsoniter_scala.core._
3635
import io.circe.Decoder

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/AnyValsWriting.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class AnyValsWriting extends AnyValsBenchmark {
3131

3232
@Benchmark
3333
def circeJsoniter(): Array[Byte] = {
34-
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceEncodersDecoders._
3534
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
3635
import com.github.plokhotnyuk.jsoniter_scala.core._
3736
import io.circe.syntax._

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsReading.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class ArrayOfBigDecimalsReading extends ArrayOfBigDecimalsBenchmark {
3030
@Benchmark
3131
def circeJsoniter(): Array[BigDecimal] = {
3232
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
33+
import com.github.plokhotnyuk.jsoniter_scala.circe.CirceCodecs._
3334
import com.github.plokhotnyuk.jsoniter_scala.core._
3435
import io.circe.Decoder
3536

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBigDecimalsWriting.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class ArrayOfBigDecimalsWriting extends ArrayOfBigDecimalsBenchmark {
3030
@Benchmark
3131
def circeJsoniter(): Array[Byte] = {
3232
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
33+
import com.github.plokhotnyuk.jsoniter_scala.circe.CirceCodecs._
3334
import com.github.plokhotnyuk.jsoniter_scala.core._
3435
import io.circe.syntax._
3536

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesReading.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class ArrayOfBytesReading extends ArrayOfBytesBenchmark {
2929
@Benchmark
3030
def circeJsoniter(): Array[Byte] = {
3131
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
32+
import com.github.plokhotnyuk.jsoniter_scala.circe.CirceCodecs._
3233
import com.github.plokhotnyuk.jsoniter_scala.core._
3334
import io.circe.Decoder
3435

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfBytesWriting.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class ArrayOfBytesWriting extends ArrayOfBytesBenchmark {
3131
@Benchmark
3232
def circeJsoniter(): Array[Byte] = {
3333
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
34+
import com.github.plokhotnyuk.jsoniter_scala.circe.CirceCodecs._
3435
import com.github.plokhotnyuk.jsoniter_scala.core._
3536
import io.circe.syntax._
3637

jsoniter-scala-benchmark/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/ArrayOfDoublesReading.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class ArrayOfDoublesReading extends ArrayOfDoublesBenchmark {
2828
@Benchmark
2929
def circeJsoniter(): Array[Double] = {
3030
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceJsoniterCodecs._
31+
import com.github.plokhotnyuk.jsoniter_scala.circe.CirceCodecs._
3132
import com.github.plokhotnyuk.jsoniter_scala.core._
3233
import io.circe.Decoder
3334

0 commit comments

Comments
 (0)