Skip to content

Commit 84a7541

Browse files
committed
Update borer-derivation to 1.15.0
1 parent 834fc3e commit 84a7541

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ lazy val `jsoniter-scala-benchmark` = crossProject(JVMPlatform, JSPlatform)
267267
"com.dslplatform" %% "dsl-json-scala" % "2.0.2"
268268
)
269269
case _ => Seq(
270-
"io.bullet" %%% "borer-derivation" % "1.14.1"
270+
"io.bullet" %%% "borer-derivation" % "1.15.0"
271271
)
272272
}),
273273
Compile / doc / sources := Seq()

jsoniter-scala-benchmark/js/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/Main.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ object Main {
10121012
}, {
10131013
val benchmark = new GoogleMapsAPIPrettyPrinting { setup() }
10141014
GS(S("GoogleMapsAPIPrettyPrinting")(
1015+
B("borer")(benchmark.borer()),
10151016
B("circe")(benchmark.circe()),
10161017
B("circeJsoniter")(benchmark.circeJsoniter()),
10171018
B("jsoniterScala")(benchmark.jsoniterScala()),

jsoniter-scala-benchmark/js/src/test/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIPrettyPrintingSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class GoogleMapsAPIPrettyPrintingSpec extends BenchmarkSpecBase {
88
"GoogleMapsAPIPrettyPrinting" should {
99
"pretty print properly" in {
1010
val b = benchmark
11+
toString(b.borer()) shouldBe b.jsonString2
1112
toString(b.circe()) shouldBe b.jsonString1
1213
toString(b.circeJsoniter()) shouldBe b.jsonString2
1314
toString(b.jsoniterScala()) shouldBe b.jsonString2

jsoniter-scala-benchmark/jvm/src/test/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIPrettyPrintingSpec.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class GoogleMapsAPIPrettyPrintingSpec extends BenchmarkSpecBase {
88
"GoogleMapsAPIPrettyPrinting" should {
99
"pretty print properly" in {
1010
val b = benchmark
11+
toString(b.borer()) shouldBe b.jsonString2
1112
toString(b.circe()) shouldBe b.jsonString1
1213
toString(b.circeJsoniter()) shouldBe b.jsonString2
1314
toString(b.jacksonScala()) shouldBe b.jsonString1

jsoniter-scala-benchmark/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/benchmark/GoogleMapsAPIPrettyPrinting.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ package com.github.plokhotnyuk.jsoniter_scala.benchmark
33
import org.openjdk.jmh.annotations.Benchmark
44

55
class GoogleMapsAPIPrettyPrinting extends GoogleMapsAPIBenchmark {
6+
@Benchmark
7+
def borer(): Array[Byte] = {
8+
import com.github.plokhotnyuk.jsoniter_scala.benchmark.BorerJsonEncodersDecoders._
9+
import io.bullet.borer.Json
10+
11+
Json.encode(obj).withPrettyRendering(2).toByteArray
12+
}
13+
614
@Benchmark
715
def circe(): Array[Byte] = {
816
import com.github.plokhotnyuk.jsoniter_scala.benchmark.CirceEncodersDecoders._

0 commit comments

Comments
 (0)