@@ -26,6 +26,8 @@ object Main {
26
26
B (" smithy4sJson" )(benchmark.smithy4sJson()),
27
27
B (" uPickle" )(benchmark.uPickle()),
28
28
B (" zioJson" )(benchmark.zioJson())
29
+ // FIXME: zio-schema-json throws java.lang.RuntimeException: .type.Z.l.type(unrecognized subtype)
30
+ // B("zioSchemaJson")(benchmark.zioSchemaJson())
29
31
))
30
32
}, {
31
33
val benchmark = new ADTWriting { setup() }
@@ -41,6 +43,8 @@ object Main {
41
43
B (" smithy4sJson" )(benchmark.smithy4sJson()),
42
44
B (" uPickle" )(benchmark.uPickle()),
43
45
B (" zioJson" )(benchmark.zioJson())
46
+ // FIXME: zio-schema-json doesn't serialize the discriminator field
47
+ // B("zioSchemaJson")(benchmark.zioSchemaJson())
44
48
))
45
49
}, {
46
50
val benchmark = new AnyValsReading { setup() }
@@ -54,7 +58,8 @@ object Main {
54
58
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
55
59
B (" smithy4sJson" )(benchmark.smithy4sJson()),
56
60
B (" uPickle" )(benchmark.uPickle()),
57
- B (" zioJson" )(benchmark.zioJson())
61
+ B (" zioJson" )(benchmark.zioJson()),
62
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
58
63
))
59
64
}, {
60
65
val benchmark = new AnyValsWriting { setup() }
@@ -69,7 +74,8 @@ object Main {
69
74
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
70
75
B (" smithy4sJson" )(benchmark.smithy4sJson()),
71
76
B (" uPickle" )(benchmark.uPickle()),
72
- B (" zioJson" )(benchmark.zioJson())
77
+ B (" zioJson" )(benchmark.zioJson()),
78
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
73
79
))
74
80
}, {
75
81
val benchmark = new ArrayBufferOfBooleansReading { size = 128 ; setup() }
@@ -81,7 +87,8 @@ object Main {
81
87
B (" jsoniterScala" )(benchmark.jsoniterScala()),
82
88
B (" playJson" )(benchmark.playJson()),
83
89
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
84
- B (" uPickle" )(benchmark.uPickle())
90
+ B (" uPickle" )(benchmark.uPickle()),
91
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
85
92
))
86
93
}, {
87
94
val benchmark = new ArrayBufferOfBooleansWriting { size = 128 ; setup() }
@@ -95,7 +102,8 @@ object Main {
95
102
B (" playJson" )(benchmark.playJson()),
96
103
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
97
104
B (" uPickle" )(benchmark.uPickle()),
98
- B (" zioJson" )(benchmark.zioJson())
105
+ B (" zioJson" )(benchmark.zioJson()),
106
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
99
107
))
100
108
}, {
101
109
val benchmark = new ArrayOfBigDecimalsReading { size = 128 ; setup() }
@@ -165,7 +173,8 @@ object Main {
165
173
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
166
174
B (" smithy4sJson" )(benchmark.smithy4sJson()),
167
175
B (" uPickle" )(benchmark.uPickle()),
168
- B (" zioJson" )(benchmark.zioJson())
176
+ B (" zioJson" )(benchmark.zioJson()),
177
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
169
178
))
170
179
}, {
171
180
val benchmark = new ArrayOfBooleansWriting { size = 128 ; setup() }
@@ -180,7 +189,8 @@ object Main {
180
189
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
181
190
B (" smithy4sJson" )(benchmark.smithy4sJson()),
182
191
B (" uPickle" )(benchmark.uPickle()),
183
- B (" zioJson" )(benchmark.zioJson())
192
+ B (" zioJson" )(benchmark.zioJson()),
193
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
184
194
))
185
195
}, {
186
196
val benchmark = new ArrayOfBytesReading { size = 128 ; setup() }
@@ -305,7 +315,8 @@ object Main {
305
315
B (" playJson" )(benchmark.playJson()),
306
316
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
307
317
B (" uPickle" )(benchmark.uPickle()),
308
- B (" zioJson" )(benchmark.zioJson())
318
+ B (" zioJson" )(benchmark.zioJson()),
319
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
309
320
))
310
321
}, {
311
322
val benchmark = new ArrayOfEnumADTsWriting { size = 128 ; setup() }
@@ -319,7 +330,8 @@ object Main {
319
330
B (" playJson" )(benchmark.playJson()),
320
331
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
321
332
B (" uPickle" )(benchmark.uPickle()),
322
- B (" zioJson" )(benchmark.zioJson())
333
+ B (" zioJson" )(benchmark.zioJson()),
334
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
323
335
))
324
336
}, {
325
337
val benchmark = new ArrayOfEnumsReading { size = 128 ; setup() }
@@ -887,7 +899,8 @@ object Main {
887
899
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
888
900
B (" smithy4sJson" )(benchmark.smithy4sJson()),
889
901
B (" uPickle" )(benchmark.uPickle()),
890
- B (" zioJson" )(benchmark.zioJson())
902
+ B (" zioJson" )(benchmark.zioJson()),
903
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
891
904
))
892
905
}, {
893
906
val benchmark = new ArraySeqOfBooleansWriting { size = 128 ; setup() }
@@ -902,7 +915,8 @@ object Main {
902
915
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
903
916
B (" smithy4sJson" )(benchmark.smithy4sJson()),
904
917
B (" uPickle" )(benchmark.uPickle()),
905
- B (" zioJson" )(benchmark.zioJson())
918
+ B (" zioJson" )(benchmark.zioJson()),
919
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
906
920
))
907
921
}, {
908
922
val benchmark = new Base16Reading { size = 128 ; setup() }
@@ -1031,7 +1045,8 @@ object Main {
1031
1045
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1032
1046
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1033
1047
B (" uPickle" )(benchmark.uPickle()),
1034
- B (" zioJson" )(benchmark.zioJson())
1048
+ B (" zioJson" )(benchmark.zioJson()),
1049
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1035
1050
))
1036
1051
}, {
1037
1052
val benchmark = new GeoJSONReading { setup() }
@@ -1046,6 +1061,8 @@ object Main {
1046
1061
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1047
1062
B (" uPickle" )(benchmark.uPickle()),
1048
1063
B (" zioJson" )(benchmark.zioJson())
1064
+ // FIXME: zio-schema-json throws java.lang.RuntimeException: .type.FeatureCollection.features[0].type.Feature.geometry.type.Polygon(unrecognized subtype)
1065
+ // B("zioSchemaJson")(benchmark.zioSchemaJson())
1049
1066
))
1050
1067
}, {
1051
1068
val benchmark = new GeoJSONWriting { setup() }
@@ -1060,7 +1077,8 @@ object Main {
1060
1077
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1061
1078
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1062
1079
B (" uPickle" )(benchmark.uPickle()),
1063
- B (" zioJson" )(benchmark.zioJson())
1080
+ B (" zioJson" )(benchmark.zioJson()),
1081
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1064
1082
))
1065
1083
}, {
1066
1084
val benchmark = new GitHubActionsAPIReading { setup() }
@@ -1074,7 +1092,8 @@ object Main {
1074
1092
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1075
1093
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1076
1094
B (" uPickle" )(benchmark.uPickle()),
1077
- B (" zioJson" )(benchmark.zioJson())
1095
+ B (" zioJson" )(benchmark.zioJson()),
1096
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1078
1097
))
1079
1098
}, {
1080
1099
val benchmark = new GitHubActionsAPIWriting { setup() }
@@ -1089,7 +1108,8 @@ object Main {
1089
1108
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1090
1109
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1091
1110
B (" uPickle" )(benchmark.uPickle()),
1092
- B (" zioJson" )(benchmark.zioJson())
1111
+ B (" zioJson" )(benchmark.zioJson()),
1112
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1093
1113
))
1094
1114
}, {
1095
1115
val benchmark = new GoogleMapsAPIPrettyPrinting { setup() }
@@ -1104,7 +1124,8 @@ object Main {
1104
1124
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1105
1125
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1106
1126
B (" uPickle" )(benchmark.uPickle()),
1107
- B (" zioJson" )(benchmark.zioJson())
1127
+ B (" zioJson" )(benchmark.zioJson()),
1128
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1108
1129
))
1109
1130
}, {
1110
1131
val benchmark = new GoogleMapsAPIReading { setup() }
@@ -1118,7 +1139,8 @@ object Main {
1118
1139
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1119
1140
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1120
1141
B (" uPickle" )(benchmark.uPickle()),
1121
- B (" zioJson" )(benchmark.zioJson())
1142
+ B (" zioJson" )(benchmark.zioJson()),
1143
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1122
1144
))
1123
1145
}, {
1124
1146
val benchmark = new GoogleMapsAPIWriting { setup() }
@@ -1133,7 +1155,8 @@ object Main {
1133
1155
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1134
1156
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1135
1157
B (" uPickle" )(benchmark.uPickle()),
1136
- B (" zioJson" )(benchmark.zioJson())
1158
+ B (" zioJson" )(benchmark.zioJson()),
1159
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1137
1160
))
1138
1161
}, {
1139
1162
val benchmark = new IntMapOfBooleansReading { size = 128 ; setup() }
@@ -1195,7 +1218,8 @@ object Main {
1195
1218
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1196
1219
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1197
1220
B (" uPickle" )(benchmark.uPickle()),
1198
- B (" zioJson" )(benchmark.zioJson())
1221
+ B (" zioJson" )(benchmark.zioJson()),
1222
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1199
1223
))
1200
1224
}, {
1201
1225
val benchmark = new ListOfBooleansWriting { size = 128 ; setup() }
@@ -1210,7 +1234,8 @@ object Main {
1210
1234
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1211
1235
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1212
1236
B (" uPickle" )(benchmark.uPickle()),
1213
- B (" zioJson" )(benchmark.zioJson())
1237
+ B (" zioJson" )(benchmark.zioJson()),
1238
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1214
1239
))
1215
1240
}, {
1216
1241
val benchmark = new MapOfIntsToBooleansReading { size = 128 ; setup() }
@@ -1249,7 +1274,8 @@ object Main {
1249
1274
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1250
1275
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1251
1276
B (" uPickle" )(benchmark.uPickle()),
1252
- B (" zioJson" )(benchmark.zioJson())
1277
+ B (" zioJson" )(benchmark.zioJson()),
1278
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1253
1279
))
1254
1280
}, {
1255
1281
val benchmark = new MutableBitSetReading { size = 128 ; setup() }
@@ -1349,6 +1375,8 @@ object Main {
1349
1375
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1350
1376
B (" uPickle" )(benchmark.uPickle()),
1351
1377
B (" zioJson" )(benchmark.zioJson())
1378
+ // FIXME: zio-schema-json parses only 127 levels of nesting instead of 128
1379
+ // B("zioSchemaJson")(benchmark.zioSchemaJson())
1352
1380
))
1353
1381
}, {
1354
1382
val benchmark = new NestedStructsWriting { size = 128 ; setup() }
@@ -1362,7 +1390,8 @@ object Main {
1362
1390
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1363
1391
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1364
1392
B (" uPickle" )(benchmark.uPickle()),
1365
- B (" zioJson" )(benchmark.zioJson())
1393
+ B (" zioJson" )(benchmark.zioJson()),
1394
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1366
1395
))
1367
1396
}, {
1368
1397
val benchmark = new OpenRTBReading { setup() }
@@ -1376,7 +1405,8 @@ object Main {
1376
1405
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1377
1406
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1378
1407
B (" uPickle" )(benchmark.uPickle()),
1379
- B (" zioJson" )(benchmark.zioJson())
1408
+ B (" zioJson" )(benchmark.zioJson()),
1409
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1380
1410
))
1381
1411
}, {
1382
1412
val benchmark = new OpenRTBWriting { setup() }
@@ -1391,6 +1421,10 @@ object Main {
1391
1421
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1392
1422
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1393
1423
B (" uPickle" )(benchmark.uPickle())
1424
+ // FIXME: zio-json serializes empty collections
1425
+ // B("zioJson")(benchmark.zioJson()),
1426
+ // FIXME: zio-schema-json serializes default values
1427
+ // B("zioSchemaJson")(benchmark.zioSchemaJson())
1394
1428
))
1395
1429
}, {
1396
1430
val benchmark = new PrimitivesReading { setup() }
@@ -1404,7 +1438,8 @@ object Main {
1404
1438
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1405
1439
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1406
1440
B (" uPickle" )(benchmark.uPickle()),
1407
- B (" zioJson" )(benchmark.zioJson())
1441
+ B (" zioJson" )(benchmark.zioJson()),
1442
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1408
1443
))
1409
1444
}, {
1410
1445
val benchmark = new PrimitivesWriting { setup() }
@@ -1419,7 +1454,8 @@ object Main {
1419
1454
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1420
1455
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1421
1456
B (" uPickle" )(benchmark.uPickle()),
1422
- B (" zioJson" )(benchmark.zioJson())
1457
+ B (" zioJson" )(benchmark.zioJson()),
1458
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1423
1459
))
1424
1460
}, {
1425
1461
val benchmark = new SetOfIntsReading { size = 128 ; setup() }
@@ -1433,7 +1469,8 @@ object Main {
1433
1469
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1434
1470
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1435
1471
B (" uPickle" )(benchmark.uPickle()),
1436
- B (" zioJson" )(benchmark.zioJson())
1472
+ B (" zioJson" )(benchmark.zioJson()),
1473
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1437
1474
))
1438
1475
}, {
1439
1476
val benchmark = new SetOfIntsWriting { size = 128 ; setup() }
@@ -1448,7 +1485,8 @@ object Main {
1448
1485
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1449
1486
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1450
1487
B (" uPickle" )(benchmark.uPickle()),
1451
- B (" zioJson" )(benchmark.zioJson())
1488
+ B (" zioJson" )(benchmark.zioJson()),
1489
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1452
1490
))
1453
1491
}, {
1454
1492
val benchmark = new StringOfAsciiCharsReading { size = 128 ; setup() }
@@ -1548,7 +1586,8 @@ object Main {
1548
1586
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1549
1587
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1550
1588
B (" uPickle" )(benchmark.uPickle()),
1551
- B (" zioJson" )(benchmark.zioJson())
1589
+ B (" zioJson" )(benchmark.zioJson()),
1590
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1552
1591
))
1553
1592
}, {
1554
1593
val benchmark = new TwitterAPIWriting { setup() }
@@ -1562,7 +1601,8 @@ object Main {
1562
1601
B (" playJson" )(benchmark.playJson()),
1563
1602
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1564
1603
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1565
- B (" uPickle" )(benchmark.uPickle())
1604
+ B (" uPickle" )(benchmark.uPickle()),
1605
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1566
1606
))
1567
1607
}, {
1568
1608
val benchmark = new VectorOfBooleansReading { size = 128 ; setup() }
@@ -1576,7 +1616,8 @@ object Main {
1576
1616
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1577
1617
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1578
1618
B (" uPickle" )(benchmark.uPickle()),
1579
- B (" zioJson" )(benchmark.zioJson())
1619
+ B (" zioJson" )(benchmark.zioJson()),
1620
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1580
1621
))
1581
1622
}, {
1582
1623
val benchmark = new VectorOfBooleansWriting { size = 128 ; setup() }
@@ -1591,7 +1632,8 @@ object Main {
1591
1632
B (" playJsonJsoniter" )(benchmark.playJsonJsoniter()),
1592
1633
B (" smithy4sJson" )(benchmark.smithy4sJson()),
1593
1634
B (" uPickle" )(benchmark.uPickle()),
1594
- B (" zioJson" )(benchmark.zioJson())
1635
+ B (" zioJson" )(benchmark.zioJson()),
1636
+ B (" zioSchemaJson" )(benchmark.zioSchemaJson())
1595
1637
))
1596
1638
})
1597
1639
}
0 commit comments