-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use type-specific size checks from JSON Toolkit (#221)
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
4 changed files
with
83 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
vendorpull https://github.com/sourcemeta/vendorpull dea311b5bfb53b6926a4140267959ae334d3ecf4 | ||
noa https://github.com/sourcemeta/noa caad2e1ceedf9fd1a18686a6a6d1e2b9757ead75 | ||
jsontoolkit https://github.com/sourcemeta/jsontoolkit aae184d87d6c4efe600cfb3c85163eda61f207c4 | ||
jsontoolkit https://github.com/sourcemeta/jsontoolkit c8c1f6bb8530b0fe0aa83bdfccb8ccb8db5e54ea | ||
googletest https://github.com/google/googletest a7f443b80b105f940225332ed3c31f2790092f47 | ||
googlebenchmark https://github.com/google/benchmark 378fe693a1ef51500db21b11ff05a8018c5f0e55 | ||
jsonschema-test-suite https://github.com/json-schema-org/JSON-Schema-Test-Suite c2badb1298a8698f86dadf1aea7b44b3a894e5ac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
vendor/jsontoolkit/src/json/include/sourcemeta/jsontoolkit/json_value.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
f36d332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (macos/llvm)
Compiler_Draft6_AdaptiveCard
36093679958.00017
ns/iter31678212334.000023
ns/iter1.14
Compiler_2019_09_OMC_JSON_V2
7131604874.999993
ns/iter6696227374.999921
ns/iter1.07
Evaluator_Draft4_Meta_1_No_Callback
251.28531271267607
ns/iter242.3087175933004
ns/iter1.04
Evaluator_Draft4_Required_Properties
328.66539161937055
ns/iter327.21737521683275
ns/iter1.00
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
19.083052222450508
ns/iter19.216844528886103
ns/iter0.99
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
10.224152134778636
ns/iter10.099205979714261
ns/iter1.01
Evaluator_Draft4_Items_Schema
333.96571935692805
ns/iter334.5445362278781
ns/iter1.00
Evaluator_Draft4_Nested_Object
3.0079376604396817
ns/iter2.8233337860369985
ns/iter1.07
Evaluator_Draft4_Properties_Triad_Optional
1041.9244625121826
ns/iter979.0913501084918
ns/iter1.06
Evaluator_Draft4_Properties_Triad_Closed
714.134866020356
ns/iter677.2368328965829
ns/iter1.05
Evaluator_Draft4_Properties_Triad_Required
1006.8749795077306
ns/iter1023.9650169773289
ns/iter0.98
Evaluator_Draft4_Properties_Closed
78.98922587082753
ns/iter77.92221365581493
ns/iter1.01
Evaluator_Draft4_Non_Recursive_Ref
11.634465801608295
ns/iter11.262310670978174
ns/iter1.03
Evaluator_Draft4_Pattern_Properties_True
1180.0250451034753
ns/iter1112.6832301003924
ns/iter1.06
Evaluator_Draft4_Ref_To_Single_Property
11.444462367701366
ns/iter11.713605718800718
ns/iter0.98
Evaluator_Draft4_Additional_Properties_Type
25.40744109585129
ns/iter24.70410679230907
ns/iter1.03
Evaluator_Draft4_Nested_Oneof
69.34652647767906
ns/iter67.1504635273315
ns/iter1.03
Evaluator_Draft4_Long_Enum
29.48612725637489
ns/iter28.171592261866962
ns/iter1.05
Evaluator_Draft4_Type_Object
6.210611056539713
ns/iter5.999283965998817
ns/iter1.04
Evaluator_Draft6_Property_Names
134.7043210183729
ns/iter134.67229755526725
ns/iter1.00
Evaluator_Draft7_If_Then_Else
27.561032462112188
ns/iter27.509085617254687
ns/iter1.00
Evaluator_Draft7_Vercel_1
89082.30346051062
ns/iter89267.65040140382
ns/iter1.00
Evaluator_2019_09_Unevaluated_Properties
153.61020285926182
ns/iter145.90553554123068
ns/iter1.05
Evaluator_2019_09_OMC_JSON_V2_1
6130.045183491171
ns/iter5898.576552945683
ns/iter1.04
Evaluator_2020_12_Dynamic_Ref
540.4699035861798
ns/iter540.1651505918461
ns/iter1.00
This comment was automatically generated by workflow using github-action-benchmark.
f36d332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (linux/llvm)
Compiler_Draft6_AdaptiveCard
58183343083.00001
ns/iter59278917462.99997
ns/iter0.98
Compiler_2019_09_OMC_JSON_V2
11033508109.000025
ns/iter11258278849.000021
ns/iter0.98
Evaluator_Draft4_Meta_1_No_Callback
357.13525267375627
ns/iter374.24858323429237
ns/iter0.95
Evaluator_Draft4_Required_Properties
775.1065839248705
ns/iter772.8428451473072
ns/iter1.00
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
39.61165982360685
ns/iter39.50168499778884
ns/iter1.00
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
28.822824618006845
ns/iter24.087871829215793
ns/iter1.20
Evaluator_Draft4_Items_Schema
737.7021431815015
ns/iter773.1898370571616
ns/iter0.95
Evaluator_Draft4_Nested_Object
4.949201024600462
ns/iter4.872653383820378
ns/iter1.02
Evaluator_Draft4_Properties_Triad_Optional
1229.334113104419
ns/iter1231.3047429957296
ns/iter1.00
Evaluator_Draft4_Properties_Triad_Closed
964.3866349894048
ns/iter957.6400495926879
ns/iter1.01
Evaluator_Draft4_Properties_Triad_Required
1263.3320326708363
ns/iter1276.9768776508893
ns/iter0.99
Evaluator_Draft4_Properties_Closed
138.601061052694
ns/iter141.0011801030469
ns/iter0.98
Evaluator_Draft4_Non_Recursive_Ref
29.45237198515267
ns/iter33.00169281597821
ns/iter0.89
Evaluator_Draft4_Pattern_Properties_True
1784.2889986457953
ns/iter1787.6555375821874
ns/iter1.00
Evaluator_Draft4_Ref_To_Single_Property
29.10320135085363
ns/iter23.355794454386018
ns/iter1.25
Evaluator_Draft4_Additional_Properties_Type
53.52147018681706
ns/iter62.187327838784974
ns/iter0.86
Evaluator_Draft4_Nested_Oneof
137.60840661303922
ns/iter135.22383813206682
ns/iter1.02
Evaluator_Draft4_Long_Enum
22.7908795888964
ns/iter22.930873676208183
ns/iter0.99
Evaluator_Draft4_Type_Object
11.784469572081457
ns/iter11.824724054402804
ns/iter1.00
Evaluator_Draft6_Property_Names
240.96059930902496
ns/iter249.90898873734324
ns/iter0.96
Evaluator_Draft7_If_Then_Else
56.45406939691196
ns/iter59.06032344434903
ns/iter0.96
Evaluator_Draft7_Vercel_1
117641.28172966726
ns/iter119466.24821125726
ns/iter0.98
Evaluator_2019_09_Unevaluated_Properties
193.03226991074274
ns/iter186.51068985094665
ns/iter1.03
Evaluator_2019_09_OMC_JSON_V2_1
8411.391341020731
ns/iter8456.706141356806
ns/iter0.99
Evaluator_2020_12_Dynamic_Ref
819.7028435132822
ns/iter832.4665527527819
ns/iter0.98
This comment was automatically generated by workflow using github-action-benchmark.
f36d332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (linux/gcc)
Evaluator_2020_12_Dynamic_Ref
831.1303165637275
ns/iter863.5203899352946
ns/iter0.96
Evaluator_2019_09_Unevaluated_Properties
239.59753954305705
ns/iter240.1053008335215
ns/iter1.00
Evaluator_2019_09_OMC_JSON_V2_1
11047.468786301491
ns/iter10588.47526809492
ns/iter1.04
Evaluator_Draft7_If_Then_Else
50.54116192370044
ns/iter50.70147034932877
ns/iter1.00
Evaluator_Draft7_Vercel_1
128575.13915005919
ns/iter125940.50855700696
ns/iter1.02
Evaluator_Draft6_Property_Names
495.40301898417954
ns/iter495.10712039168794
ns/iter1.00
Evaluator_Draft4_Meta_1_No_Callback
432.5163638996561
ns/iter427.21730034995016
ns/iter1.01
Evaluator_Draft4_Required_Properties
1724.9088710909425
ns/iter1633.6315472859153
ns/iter1.06
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
40.22350222356888
ns/iter38.42453363510058
ns/iter1.05
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
34.43461045732989
ns/iter31.664060150225293
ns/iter1.09
Evaluator_Draft4_Items_Schema
553.9700168901784
ns/iter571.7802513295231
ns/iter0.97
Evaluator_Draft4_Nested_Object
3.7892971246923417
ns/iter4.096474711694922
ns/iter0.93
Evaluator_Draft4_Properties_Triad_Optional
1301.8883993772538
ns/iter1278.3296337523734
ns/iter1.02
Evaluator_Draft4_Properties_Triad_Closed
1052.9199163306778
ns/iter1015.6592105624054
ns/iter1.04
Evaluator_Draft4_Properties_Triad_Required
1343.4847070939447
ns/iter1333.6296259037522
ns/iter1.01
Evaluator_Draft4_Properties_Closed
188.02226747832347
ns/iter180.82575564946805
ns/iter1.04
Evaluator_Draft4_Non_Recursive_Ref
53.06290319002012
ns/iter48.969062430003575
ns/iter1.08
Evaluator_Draft4_Pattern_Properties_True
1805.4023351805927
ns/iter1697.533132472006
ns/iter1.06
Evaluator_Draft4_Ref_To_Single_Property
37.90492442731999
ns/iter35.81018784926345
ns/iter1.06
Evaluator_Draft4_Additional_Properties_Type
112.1023967734924
ns/iter103.45440642503006
ns/iter1.08
Evaluator_Draft4_Nested_Oneof
109.07841739620139
ns/iter109.94613001498419
ns/iter0.99
Evaluator_Draft4_Long_Enum
20.718296789208008
ns/iter19.941471168645165
ns/iter1.04
Evaluator_Draft4_Type_Object
10.320976149005295
ns/iter9.703090977244791
ns/iter1.06
Compiler_2019_09_OMC_JSON_V2
11697022094.999966
ns/iter11293504253.000038
ns/iter1.04
Compiler_Draft6_AdaptiveCard
68195697272.999954
ns/iter65123251188.999916
ns/iter1.05
This comment was automatically generated by workflow using github-action-benchmark.
f36d332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (macos/gcc)
Compiler_Draft6_AdaptiveCard
44948783159.25598
ns/iter62833444833.75549
ns/iter0.72
Compiler_2019_09_OMC_JSON_V2
8131855010.986328
ns/iter10425703763.961792
ns/iter0.78
Evaluator_Draft4_Meta_1_No_Callback
256.85780717926434
ns/iter259.6306723694784
ns/iter0.99
Evaluator_Draft4_Required_Properties
428.79585319217466
ns/iter565.0649070739746
ns/iter0.76
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
23.236443791733535
ns/iter25.547222213889846
ns/iter0.91
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
13.260548149079384
ns/iter13.948560355846682
ns/iter0.95
Evaluator_Draft4_Items_Schema
507.00515193149374
ns/iter599.9599415153137
ns/iter0.85
Evaluator_Draft4_Nested_Object
2.0018675226483205
ns/iter2.031520136394752
ns/iter0.99
Evaluator_Draft4_Properties_Triad_Optional
1059.3138558991611
ns/iter1224.0158796879687
ns/iter0.87
Evaluator_Draft4_Properties_Triad_Closed
865.1889159228274
ns/iter1078.6944108153264
ns/iter0.80
Evaluator_Draft4_Properties_Triad_Required
1043.5077905208382
ns/iter1131.9322697361742
ns/iter0.92
Evaluator_Draft4_Properties_Closed
96.23706327600729
ns/iter97.8920836322735
ns/iter0.98
Evaluator_Draft4_Non_Recursive_Ref
22.887353744639036
ns/iter20.640811998096936
ns/iter1.11
Evaluator_Draft4_Pattern_Properties_True
1510.6427741497596
ns/iter1611.9557009012121
ns/iter0.94
Evaluator_Draft4_Ref_To_Single_Property
12.813284549208822
ns/iter12.938664416532088
ns/iter0.99
Evaluator_Draft4_Additional_Properties_Type
37.429182352864956
ns/iter39.113608427706936
ns/iter0.96
Evaluator_Draft4_Nested_Oneof
84.72574580843845
ns/iter85.32582456135906
ns/iter0.99
Evaluator_Draft4_Long_Enum
10.698140457884756
ns/iter16.178285067475027
ns/iter0.66
Evaluator_Draft4_Type_Object
6.134258865466712
ns/iter8.254006527108748
ns/iter0.74
Evaluator_Draft6_Property_Names
162.30149598539606
ns/iter207.23520098386604
ns/iter0.78
Evaluator_Draft7_If_Then_Else
30.31708895926071
ns/iter34.284852065344936
ns/iter0.88
Evaluator_Draft7_Vercel_1
91798.32320429977
ns/iter91752.57365309159
ns/iter1.00
Evaluator_2019_09_Unevaluated_Properties
151.81391335258013
ns/iter158.73758087923824
ns/iter0.96
Evaluator_2019_09_OMC_JSON_V2_1
6141.279857357384
ns/iter8469.785710647282
ns/iter0.73
Evaluator_2020_12_Dynamic_Ref
618.485796801403
ns/iter862.3490745825543
ns/iter0.72
This comment was automatically generated by workflow using github-action-benchmark.
f36d332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (windows/msvc)
Compiler_Draft6_AdaptiveCard
120166883500.00005
ns/iter122551078299.99997
ns/iter0.98
Compiler_2019_09_OMC_JSON_V2
25876993399.999947
ns/iter26485556900.00012
ns/iter0.98
Evaluator_Draft4_Meta_1_No_Callback
440.49395790336996
ns/iter436.05910831285746
ns/iter1.01
Evaluator_Draft4_Required_Properties
741.1213392858583
ns/iter729.3436383929271
ns/iter1.02
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
38.35329574369155
ns/iter36.3448564530501
ns/iter1.06
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
22.357657116542242
ns/iter21.567953125000372
ns/iter1.04
Evaluator_Draft4_Items_Schema
633.3673214285795
ns/iter588.2202000000234
ns/iter1.08
Evaluator_Draft4_Nested_Object
4.0310196946974335
ns/iter4.022164605396754
ns/iter1.00
Evaluator_Draft4_Properties_Triad_Optional
4278.633246145345
ns/iter5438.077678572231
ns/iter0.79
Evaluator_Draft4_Properties_Triad_Closed
3404.3342041690116
ns/iter4400.919194992262
ns/iter0.77
Evaluator_Draft4_Properties_Triad_Required
4316.362715908338
ns/iter5452.1142857148725
ns/iter0.79
Evaluator_Draft4_Properties_Closed
142.62886160710968
ns/iter146.91107142853963
ns/iter0.97
Evaluator_Draft4_Non_Recursive_Ref
16.321310267858482
ns/iter15.970247767858684
ns/iter1.02
Evaluator_Draft4_Pattern_Properties_True
8486.29241071462
ns/iter14055.902205794922
ns/iter0.60
Evaluator_Draft4_Ref_To_Single_Property
23.439147059837445
ns/iter22.60210019417414
ns/iter1.04
Evaluator_Draft4_Additional_Properties_Type
29.856245535709395
ns/iter31.542009867853075
ns/iter0.95
Evaluator_Draft4_Nested_Oneof
148.1490401785785
ns/iter140.50923926297574
ns/iter1.05
Evaluator_Draft4_Long_Enum
21.785965624999903
ns/iter20.91271874999734
ns/iter1.04
Evaluator_Draft4_Type_Object
9.995215133949568
ns/iter9.616124957071735
ns/iter1.04
Evaluator_Draft6_Property_Names
412.04241017670097
ns/iter413.8378637693064
ns/iter1.00
Evaluator_Draft7_If_Then_Else
52.17483928571401
ns/iter47.900545712064904
ns/iter1.09
Evaluator_Draft7_Vercel_1
134379.58928571042
ns/iter136216.95460026438
ns/iter0.99
Evaluator_2019_09_Unevaluated_Properties
441.6433415240537
ns/iter735.0315848214502
ns/iter0.60
Evaluator_2019_09_OMC_JSON_V2_1
9696.824567747892
ns/iter9949.434374998846
ns/iter0.97
Evaluator_2020_12_Dynamic_Ref
1377.206706604116
ns/iter1412.9168022690549
ns/iter0.97
This comment was automatically generated by workflow using github-action-benchmark.