Skip to content

Commit 25cced7

Browse files
committed
Update benchmark comments
1 parent 869efc2 commit 25cced7

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,8 @@ object Main {
16021602
B("playJsonJsoniter")(benchmark.playJsonJsoniter()),
16031603
B("smithy4sJson")(benchmark.smithy4sJson()),
16041604
B("uPickle")(benchmark.uPickle()),
1605+
//FIXME: zio-json skips serialization of the `"description": {}` field
1606+
//B("zioJson")(benchmark.zioJson()),
16051607
B("zioSchemaJson")(benchmark.zioSchemaJson())
16061608
))
16071609
}, {

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

+2
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,8 @@ object Main {
14851485
B("playJsonJsoniter")(benchmark.playJsonJsoniter()),
14861486
B("smithy4sJson")(benchmark.smithy4sJson()),
14871487
B("uPickle")(benchmark.uPickle()),
1488+
//FIXME: zio-json skips serialization of the `"description": {}` field
1489+
//B("zioJson")(benchmark.zioJson()),
14881490
B("zioSchemaJson")(benchmark.zioSchemaJson())
14891491
))
14901492
}, {

jsoniter-scala-benchmark/js/src/test/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIWritingSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TwitterAPIWritingSpec extends BenchmarkSpecBase {
1818
toString(b.playJsonJsoniter()) shouldBe b.compactJsonString1
1919
toString(b.smithy4sJson()) shouldBe b.compactJsonString1
2020
toString(b.uPickle()) shouldBe b.compactJsonString1
21-
//FIXME: zio-json serializes default values
21+
//FIXME: zio-json skips serialization of the `"description": {}` field
2222
//toString(b.zioJson()) shouldBe b.compactJsonString1
2323
toString(b.zioSchemaJson()) shouldBe b.compactJsonString1
2424
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TwitterAPIWritingSpec extends BenchmarkSpecBase {
1717
toString(b.playJsonJsoniter()) shouldBe b.compactJsonString1
1818
toString(b.smithy4sJson()) shouldBe b.compactJsonString1
1919
toString(b.uPickle()) shouldBe b.compactJsonString1
20-
//FIXME: zio-json serializes default values
20+
//FIXME: zio-json skips serialization of the `"description": {}` field
2121
//toString(b.zioJson()) shouldBe b.compactJsonString1
2222
toString(b.zioSchemaJson()) shouldBe b.compactJsonString1
2323
}

jsoniter-scala-benchmark/jvm/src/test/scala-2/com/github/plokhotnyuk/jsoniter_scala/benchmark/TwitterAPIWritingSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TwitterAPIWritingSpec extends BenchmarkSpecBase {
2727
toString(b.sprayJson()) shouldBe b.compactJsonString2
2828
toString(b.uPickle()) shouldBe b.compactJsonString1
2929
toString(b.weePickle()) shouldBe b.compactJsonString1
30-
//FIXME: zio-json serializes default values
30+
//FIXME: zio-json skips serialization of the `"description": {}` field
3131
//toString(b.zioJson()) shouldBe b.compactJsonString1
3232
toString(b.zioSchemaJson()) shouldBe b.compactJsonString1
3333
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TwitterAPIWritingSpec extends BenchmarkSpecBase {
2424
toString(b.sprayJson()) shouldBe b.compactJsonString2
2525
toString(b.uPickle()) shouldBe b.compactJsonString1
2626
toString(b.weePickle()) shouldBe b.compactJsonString1
27-
//FIXME: zio-json serializes default values
27+
//FIXME: zio-json skips serialization of the `"description": {}` field
2828
//toString(b.zioJson()) shouldBe b.compactJsonString1
2929
toString(b.zioSchemaJson()) shouldBe b.compactJsonString1
3030
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class TwitterAPIWriting extends TwitterAPIBenchmark {
138138

139139
FromScala(obj).transform(ToJson.bytes)
140140
}
141-
/* FIXME: zio-json serializes default values
141+
/* FIXME: zio-json skips serialization of the `"description": {}` field
142142
@Benchmark
143143
def zioJson(): Array[Byte] = {
144144
import com.github.plokhotnyuk.jsoniter_scala.benchmark.ZioJsonCodecs._

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class TwitterAPIWriting extends TwitterAPIBenchmark {
122122

123123
FromScala(obj).transform(ToJson.bytes)
124124
}
125-
/* FIXME: zio-json serializes default values
125+
/* FIXME: zio-json skips serialization of the `"description": {}` field
126126
@Benchmark
127127
def zioJson(): Array[Byte] = {
128128
import com.github.plokhotnyuk.jsoniter_scala.benchmark.ZioJsonCodecs._

0 commit comments

Comments
 (0)