-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only apply type bounds optimizations on
FastValidation
mode (#1280)
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
2 changed files
with
181 additions
and
9 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
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
e1fbd4b
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)
JSON_Array_Of_Objects_Unique
3542.5797568279286
ns/iter4783.578877227337
ns/iter0.74
JSONSchema_Validate_Draft4_Meta_1_No_Callback
757.3809552328534
ns/iter925.2822699975223
ns/iter0.82
JSONSchema_Validate_Draft4_Required_Properties
968.355495416522
ns/iter1034.7158184268337
ns/iter0.94
JSONSchema_Validate_Draft4_Many_Optional_Properties_Minimal_Match
156.34823259392374
ns/iter165.21926272485166
ns/iter0.95
JSONSchema_Validate_Draft4_Few_Optional_Properties_Minimal_Match
106.07597382735692
ns/iter111.96255678071621
ns/iter0.95
JSONSchema_Validate_Draft4_Items_Schema
2767.6847794736827
ns/iter3114.72661587016
ns/iter0.89
JSONSchema_Validate_Draft4_Nested_Object
23.03123385949121
ns/iter25.068596771055155
ns/iter0.92
JSONSchema_Validate_Draft4_Properties_Triad_Optional
1277.6275903038488
ns/iter1999.316521895905
ns/iter0.64
JSONSchema_Validate_Draft4_Properties_Triad_Closed
960.4896487250758
ns/iter1405.5608246835068
ns/iter0.68
JSONSchema_Validate_Draft4_Properties_Triad_Required
1307.7536343464242
ns/iter1463.0862907775188
ns/iter0.89
JSONSchema_Validate_Draft4_Non_Recursive_Ref
213.93484004924338
ns/iter231.34435339610073
ns/iter0.92
JSONSchema_Validate_Draft4_Pattern_Properties_True
1358.3983197232913
ns/iter1487.1378834159893
ns/iter0.91
JSONSchema_Validate_Draft4_Ref_To_Single_Property
105.06836684988922
ns/iter115.15384919791448
ns/iter0.91
JSONSchema_Validate_Draft4_Additional_Properties_Type
404.78599900114506
ns/iter541.949449338809
ns/iter0.75
JSONSchema_Validate_Draft4_Nested_Oneof
369.79399388625916
ns/iter457.25810138375846
ns/iter0.81
JSONSchema_Validate_Draft6_Property_Names
780.9149964704314
ns/iter1079.2418627134848
ns/iter0.72
JSONSchema_Validate_Draft7_If_Then_Else
169.47619161574724
ns/iter208.17015817112323
ns/iter0.81
JSONSchema_Compiler_Draft6_AdaptiveCard
2982391582.9999804
ns/iter3579290708.0000305
ns/iter0.83
This comment was automatically generated by workflow using github-action-benchmark.
e1fbd4b
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)
JSON_Array_Of_Objects_Unique
2128.076861965134
ns/iter2174.985408046147
ns/iter0.98
JSONSchema_Validate_Draft4_Meta_1_No_Callback
1002.8146386044235
ns/iter977.4513869037038
ns/iter1.03
JSONSchema_Validate_Draft4_Required_Properties
1630.9593186771508
ns/iter1550.5428167037169
ns/iter1.05
JSONSchema_Validate_Draft4_Many_Optional_Properties_Minimal_Match
181.08993959471638
ns/iter180.53857074311838
ns/iter1.00
JSONSchema_Validate_Draft4_Few_Optional_Properties_Minimal_Match
129.81869169033394
ns/iter128.79651600542286
ns/iter1.01
JSONSchema_Validate_Draft4_Items_Schema
3551.6944333116962
ns/iter3489.733631887188
ns/iter1.02
JSONSchema_Validate_Draft4_Nested_Object
32.55396513199086
ns/iter33.4368700655597
ns/iter0.97
JSONSchema_Validate_Draft4_Properties_Triad_Optional
1786.5987469060244
ns/iter1782.26120768523
ns/iter1.00
JSONSchema_Validate_Draft4_Properties_Triad_Closed
1503.5467933626228
ns/iter1485.9218420138002
ns/iter1.01
JSONSchema_Validate_Draft4_Properties_Triad_Required
1882.173808824814
ns/iter1883.8885984928488
ns/iter1.00
JSONSchema_Validate_Draft4_Non_Recursive_Ref
481.657403195996
ns/iter481.5418599320939
ns/iter1.00
JSONSchema_Validate_Draft4_Pattern_Properties_True
2423.8484124131837
ns/iter2447.594610993615
ns/iter0.99
JSONSchema_Validate_Draft4_Ref_To_Single_Property
133.98170960031456
ns/iter132.0714280042046
ns/iter1.01
JSONSchema_Validate_Draft4_Additional_Properties_Type
599.1407891480193
ns/iter599.0656722803168
ns/iter1.00
JSONSchema_Validate_Draft4_Nested_Oneof
475.5293533359972
ns/iter472.2450434111126
ns/iter1.01
JSONSchema_Validate_Draft6_Property_Names
1248.2066861473375
ns/iter1226.8275637836662
ns/iter1.02
JSONSchema_Validate_Draft7_If_Then_Else
210.36840247183747
ns/iter209.68793416543483
ns/iter1.00
JSONSchema_Compiler_Draft6_AdaptiveCard
5548031551.999998
ns/iter5483468854.000023
ns/iter1.01
This comment was automatically generated by workflow using github-action-benchmark.
e1fbd4b
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)
JSONSchema_Compiler_Draft6_AdaptiveCard
6097579111.9999485
ns/iter6102685909.999991
ns/iter1.00
JSONSchema_Validate_Draft4_Meta_1_No_Callback
1060.4012339073236
ns/iter1065.4603791484517
ns/iter1.00
JSONSchema_Validate_Draft4_Required_Properties
2238.8627905046883
ns/iter2241.519664105006
ns/iter1.00
JSONSchema_Validate_Draft4_Many_Optional_Properties_Minimal_Match
192.10103785830472
ns/iter186.8751048294911
ns/iter1.03
JSONSchema_Validate_Draft4_Few_Optional_Properties_Minimal_Match
138.00162208561028
ns/iter132.99983007624684
ns/iter1.04
JSONSchema_Validate_Draft4_Items_Schema
3014.472530214511
ns/iter2999.2824093086397
ns/iter1.01
JSONSchema_Validate_Draft4_Nested_Object
22.68977018780971
ns/iter24.021828934570998
ns/iter0.94
JSONSchema_Validate_Draft4_Properties_Triad_Optional
1691.1989168123507
ns/iter1759.5718155656675
ns/iter0.96
JSONSchema_Validate_Draft4_Properties_Triad_Closed
1408.2112288794392
ns/iter1442.1280331315686
ns/iter0.98
JSONSchema_Validate_Draft4_Properties_Triad_Required
1766.3757960979763
ns/iter1851.2428725673444
ns/iter0.95
JSONSchema_Validate_Draft4_Non_Recursive_Ref
470.0944695152115
ns/iter461.26461474018566
ns/iter1.02
JSONSchema_Validate_Draft4_Pattern_Properties_True
2226.4417491434356
ns/iter2363.420447805156
ns/iter0.94
JSONSchema_Validate_Draft4_Ref_To_Single_Property
146.26158567273671
ns/iter140.30373469008543
ns/iter1.04
JSONSchema_Validate_Draft4_Additional_Properties_Type
1098.4992648012455
ns/iter1080.2937232871002
ns/iter1.02
JSONSchema_Validate_Draft4_Nested_Oneof
425.6813259656307
ns/iter425.0937193771304
ns/iter1.00
JSONSchema_Validate_Draft6_Property_Names
1575.2913536458516
ns/iter1555.8833485225211
ns/iter1.01
JSONSchema_Validate_Draft7_If_Then_Else
205.92983562539715
ns/iter193.47477997376217
ns/iter1.06
JSON_Array_Of_Objects_Unique
3158.5907489694314
ns/iter3211.57328972226
ns/iter0.98
This comment was automatically generated by workflow using github-action-benchmark.
e1fbd4b
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)
JSON_Array_Of_Objects_Unique
5175.736999999572
ns/iter5265.401999999995
ns/iter0.98
JSONSchema_Validate_Draft4_Meta_1_No_Callback
2345.2917857144125
ns/iter2393.770989095413
ns/iter0.98
JSONSchema_Validate_Draft4_Required_Properties
2013.7666671501734
ns/iter2023.0065435341899
ns/iter1.00
JSONSchema_Validate_Draft4_Many_Optional_Properties_Minimal_Match
565.6636607142218
ns/iter556.4482142856622
ns/iter1.02
JSONSchema_Validate_Draft4_Few_Optional_Properties_Minimal_Match
410.6144369263109
ns/iter408.268928202329
ns/iter1.01
JSONSchema_Validate_Draft4_Items_Schema
6344.918750000618
ns/iter6485.616071427407
ns/iter0.98
JSONSchema_Validate_Draft4_Nested_Object
161.67758928570413
ns/iter160.41886160712082
ns/iter1.01
JSONSchema_Validate_Draft4_Properties_Triad_Optional
5649.7303571429065
ns/iter5441.794999999274
ns/iter1.04
JSONSchema_Validate_Draft4_Properties_Triad_Closed
4529.7006249995775
ns/iter4441.994375000036
ns/iter1.02
JSONSchema_Validate_Draft4_Properties_Triad_Required
5484.171999999035
ns/iter5485.782142855554
ns/iter1.00
JSONSchema_Validate_Draft4_Non_Recursive_Ref
575.3708035714209
ns/iter534.0078999997786
ns/iter1.08
JSONSchema_Validate_Draft4_Pattern_Properties_True
8037.893973215558
ns/iter8020.671782713101
ns/iter1.00
JSONSchema_Validate_Draft4_Ref_To_Single_Property
418.78832659640693
ns/iter416.13310519938176
ns/iter1.01
JSONSchema_Validate_Draft4_Additional_Properties_Type
742.7126116069819
ns/iter735.8639508928836
ns/iter1.01
JSONSchema_Validate_Draft4_Nested_Oneof
1101.4648437498665
ns/iter1109.7532812499367
ns/iter0.99
JSONSchema_Validate_Draft6_Property_Names
1856.4913897245672
ns/iter1865.3130047440675
ns/iter1.00
JSONSchema_Validate_Draft7_If_Then_Else
554.0840000001026
ns/iter557.8491999999642
ns/iter0.99
JSONSchema_Compiler_Draft6_AdaptiveCard
10081019799.999922
ns/iter10214839699.999857
ns/iter0.99
This comment was automatically generated by workflow using github-action-benchmark.