Skip to content

Commit 1855d93

Browse files
committed
Add more zio-schema-json benchmarks
1 parent 7398a38 commit 1855d93

File tree

267 files changed

+1190
-121
lines changed

Some content is hidden

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

267 files changed

+1190
-121
lines changed

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

Lines changed: 88 additions & 44 deletions
Large diffs are not rendered by default.

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

Lines changed: 88 additions & 44 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ArrayOfBytesReadingSpec extends BenchmarkSpecBase {
1919
benchmark.smithy4sJson() shouldBe benchmark.obj
2020
benchmark.uPickle() shouldBe benchmark.obj
2121
benchmark.zioJson() shouldBe benchmark.obj
22+
benchmark.zioSchemaJson() shouldBe benchmark.obj
2223
}
2324
"fail on invalid input" in {
2425
val b = benchmark
@@ -33,6 +34,7 @@ class ArrayOfBytesReadingSpec extends BenchmarkSpecBase {
3334
intercept[Throwable](b.smithy4sJson())
3435
intercept[Throwable](b.uPickle())
3536
intercept[Throwable](b.zioJson())
37+
intercept[Throwable](b.zioSchemaJson())
3638
}
3739
}
3840
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ArrayOfBytesWritingSpec extends BenchmarkSpecBase {
1919
toString(b.smithy4sJson()) shouldBe b.jsonString
2020
toString(b.uPickle()) shouldBe b.jsonString
2121
toString(b.zioJson()) shouldBe b.jsonString
22+
toString(b.zioSchemaJson()) shouldBe b.jsonString
2223
}
2324
}
2425
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class ArrayOfCharsReadingSpec extends BenchmarkSpecBase {
1818
benchmark.playJsonJsoniter() shouldBe benchmark.obj
1919
benchmark.uPickle() shouldBe benchmark.obj
2020
benchmark.zioJson() shouldBe benchmark.obj
21+
benchmark.zioSchemaJson() shouldBe benchmark.obj
2122
}
2223
"fail on invalid input" in {
2324
val b = benchmark
@@ -31,6 +32,7 @@ class ArrayOfCharsReadingSpec extends BenchmarkSpecBase {
3132
intercept[Throwable](b.playJsonJsoniter())
3233
intercept[Throwable](b.uPickle())
3334
intercept[Throwable](b.zioJson())
35+
intercept[Throwable](b.zioSchemaJson())
3436
}
3537
}
3638
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class ArrayOfCharsWritingSpec extends BenchmarkSpecBase {
1818
toString(b.playJsonJsoniter()) shouldBe b.jsonString
1919
toString(b.uPickle()) shouldBe b.jsonString
2020
toString(b.zioJson()) shouldBe b.jsonString
21+
toString(b.zioSchemaJson()) shouldBe b.jsonString
2122
}
2223
}
2324
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ArrayOfDoublesReadingSpec extends BenchmarkSpecBase {
1919
benchmark.smithy4sJson() shouldBe benchmark.obj
2020
benchmark.uPickle() shouldBe benchmark.obj
2121
benchmark.zioJson() shouldBe benchmark.obj
22+
benchmark.zioSchemaJson() shouldBe benchmark.obj
2223
}
2324
"fail on invalid input" in {
2425
val b = benchmark
@@ -33,6 +34,7 @@ class ArrayOfDoublesReadingSpec extends BenchmarkSpecBase {
3334
intercept[Throwable](b.smithy4sJson())
3435
intercept[Throwable](b.uPickle())
3536
intercept[Throwable](b.zioJson())
37+
intercept[Throwable](b.zioSchemaJson())
3638
}
3739
}
3840
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ArrayOfDoublesWritingSpec extends BenchmarkSpecBase {
1919
check(toString(b.smithy4sJson()), b.jsonString)
2020
check(toString(b.uPickle()), b.jsonString)
2121
check(toString(b.zioJson()), b.jsonString)
22+
check(toString(b.zioSchemaJson()), b.jsonString)
2223
}
2324
}
2425

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class ArrayOfDurationsReadingSpec extends BenchmarkSpecBase {
1818
benchmark.playJsonJsoniter() shouldBe benchmark.obj
1919
benchmark.uPickle() shouldBe benchmark.obj
2020
benchmark.zioJson() shouldBe benchmark.obj
21+
benchmark.zioSchemaJson() shouldBe benchmark.obj
2122
}
2223
"fail on invalid input" in {
2324
val b = benchmark
@@ -31,6 +32,7 @@ class ArrayOfDurationsReadingSpec extends BenchmarkSpecBase {
3132
intercept[Throwable](b.playJsonJsoniter())
3233
intercept[Throwable](b.uPickle())
3334
intercept[Throwable](b.zioJson())
35+
intercept[Throwable](b.zioSchemaJson())
3436
}
3537
}
3638
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class ArrayOfDurationsWritingSpec extends BenchmarkSpecBase {
1818
toString(b.playJsonJsoniter()) shouldBe b.jsonString
1919
toString(b.uPickle()) shouldBe b.jsonString
2020
toString(b.zioJson()) shouldBe b.jsonString
21+
toString(b.zioSchemaJson()) shouldBe b.jsonString
2122
}
2223
}
2324
}

0 commit comments

Comments
 (0)