Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-organize evaluator to allow multiple implementations (#209)
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
8cd51b3
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
31985036375.00005
ns/iter31724189125.000065
ns/iter1.01
Compiler_2019_09_OMC_JSON_V2
6939618417.00002
ns/iter6683087041.999897
ns/iter1.04
Evaluator_Draft4_Meta_1_No_Callback
283.90614692484576
ns/iter282.0802018102457
ns/iter1.01
Evaluator_Draft4_Required_Properties
363.22640320933766
ns/iter345.2223243040953
ns/iter1.05
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
22.977605450526195
ns/iter21.88413674959562
ns/iter1.05
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
10.446854864916205
ns/iter10.166224085475472
ns/iter1.03
Evaluator_Draft4_Items_Schema
716.5991027429149
ns/iter672.3888390024788
ns/iter1.07
Evaluator_Draft4_Nested_Object
1.4235705613453744
ns/iter1.4213666959454994
ns/iter1.00
Evaluator_Draft4_Properties_Triad_Optional
1004.1731805203407
ns/iter1015.966096560229
ns/iter0.99
Evaluator_Draft4_Properties_Triad_Closed
700.3980663798826
ns/iter703.3029722657782
ns/iter1.00
Evaluator_Draft4_Properties_Triad_Required
992.8974247274311
ns/iter997.5299255851528
ns/iter1.00
Evaluator_Draft4_Properties_Closed
93.91595056342322
ns/iter96.82105441338301
ns/iter0.97
Evaluator_Draft4_Non_Recursive_Ref
12.699434869284145
ns/iter11.986382440050052
ns/iter1.06
Evaluator_Draft4_Pattern_Properties_True
1228.9745645586584
ns/iter1192.0096500932514
ns/iter1.03
Evaluator_Draft4_Ref_To_Single_Property
11.671088718425464
ns/iter10.9645164679721
ns/iter1.06
Evaluator_Draft4_Additional_Properties_Type
27.41645709334877
ns/iter25.913948738318464
ns/iter1.06
Evaluator_Draft4_Nested_Oneof
80.79180974985688
ns/iter82.57809969139895
ns/iter0.98
Evaluator_Draft4_Long_Enum
20.73878828348369
ns/iter21.243805041861048
ns/iter0.98
Evaluator_Draft4_Type_Object
5.635610218193596
ns/iter6.029374181698149
ns/iter0.93
Evaluator_Draft6_Property_Names
268.2366942918151
ns/iter273.7730150153332
ns/iter0.98
Evaluator_Draft7_If_Then_Else
39.832373352860316
ns/iter39.9959829924482
ns/iter1.00
Evaluator_Draft7_Vercel_1
93678.8659463709
ns/iter95603.13662916388
ns/iter0.98
Evaluator_2019_09_Unevaluated_Properties
149.3400394753569
ns/iter157.5984019286551
ns/iter0.95
Evaluator_2019_09_OMC_JSON_V2_1
6479.332148346135
ns/iter6891.801522651866
ns/iter0.94
Evaluator_2020_12_Dynamic_Ref
514.3584212564152
ns/iter520.4458146301168
ns/iter0.99
This comment was automatically generated by workflow using github-action-benchmark.
8cd51b3
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
57896197591.00003
ns/iter57960813534.00001
ns/iter1.00
Compiler_2019_09_OMC_JSON_V2
10999949022.00001
ns/iter11083911374.000025
ns/iter0.99
Evaluator_Draft4_Meta_1_No_Callback
396.7389083017803
ns/iter405.2955227056597
ns/iter0.98
Evaluator_Draft4_Required_Properties
777.807376143507
ns/iter811.0710101633262
ns/iter0.96
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
41.13074264737018
ns/iter44.53194864131483
ns/iter0.92
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
24.75342909093421
ns/iter26.354137208532325
ns/iter0.94
Evaluator_Draft4_Items_Schema
1215.734114040108
ns/iter1288.9806910176983
ns/iter0.94
Evaluator_Draft4_Nested_Object
5.426148824746466
ns/iter4.947629038488917
ns/iter1.10
Evaluator_Draft4_Properties_Triad_Optional
1253.0585891702312
ns/iter1270.0774352740173
ns/iter0.99
Evaluator_Draft4_Properties_Triad_Closed
976.8242625975341
ns/iter986.576587308874
ns/iter0.99
Evaluator_Draft4_Properties_Triad_Required
1282.3663855756074
ns/iter1300.1420870013847
ns/iter0.99
Evaluator_Draft4_Properties_Closed
139.17564451292478
ns/iter147.49593976103404
ns/iter0.94
Evaluator_Draft4_Non_Recursive_Ref
32.16095038336653
ns/iter36.568896956210246
ns/iter0.88
Evaluator_Draft4_Pattern_Properties_True
2015.6169166703573
ns/iter1993.7749663051693
ns/iter1.01
Evaluator_Draft4_Ref_To_Single_Property
24.450513522929246
ns/iter26.070310817928828
ns/iter0.94
Evaluator_Draft4_Additional_Properties_Type
56.2657165664816
ns/iter65.23172240805059
ns/iter0.86
Evaluator_Draft4_Nested_Oneof
149.40144428397585
ns/iter162.99093933649547
ns/iter0.92
Evaluator_Draft4_Long_Enum
23.838338808798653
ns/iter25.06159781768043
ns/iter0.95
Evaluator_Draft4_Type_Object
13.176965048208716
ns/iter14.229816291831405
ns/iter0.93
Evaluator_Draft6_Property_Names
515.8649480223879
ns/iter534.0288984258825
ns/iter0.97
Evaluator_Draft7_If_Then_Else
65.30227315126201
ns/iter78.34543787613471
ns/iter0.83
Evaluator_Draft7_Vercel_1
128885.54084046706
ns/iter132106.92452121194
ns/iter0.98
Evaluator_2019_09_Unevaluated_Properties
197.61786886720498
ns/iter216.87771828912537
ns/iter0.91
Evaluator_2019_09_OMC_JSON_V2_1
9453.189124487038
ns/iter9678.11148611429
ns/iter0.98
Evaluator_2020_12_Dynamic_Ref
909.0980651474279
ns/iter888.8731116405095
ns/iter1.02
This comment was automatically generated by workflow using github-action-benchmark.
8cd51b3
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
793.1546690474037
ns/iter823.4239300622858
ns/iter0.96
Evaluator_2019_09_Unevaluated_Properties
240.54602456636422
ns/iter259.70387283464254
ns/iter0.93
Evaluator_2019_09_OMC_JSON_V2_1
12042.297145307644
ns/iter11750.813326406284
ns/iter1.02
Evaluator_Draft7_If_Then_Else
56.86327528809758
ns/iter59.382936612656046
ns/iter0.96
Evaluator_Draft7_Vercel_1
136113.27555111187
ns/iter135761.9938148398
ns/iter1.00
Evaluator_Draft6_Property_Names
1197.1900968538555
ns/iter1156.8453640396813
ns/iter1.03
Evaluator_Draft4_Meta_1_No_Callback
482.2509850067865
ns/iter469.33521748559224
ns/iter1.03
Evaluator_Draft4_Required_Properties
1730.3690822956842
ns/iter1686.5246201239663
ns/iter1.03
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
42.35395908809266
ns/iter42.69514671779766
ns/iter0.99
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
34.98469375117371
ns/iter32.72590023663535
ns/iter1.07
Evaluator_Draft4_Items_Schema
1010.4577290260488
ns/iter1039.3501260680703
ns/iter0.97
Evaluator_Draft4_Nested_Object
3.5226100967329517
ns/iter3.5194475662231146
ns/iter1.00
Evaluator_Draft4_Properties_Triad_Optional
1382.5628176097462
ns/iter1308.2476226121526
ns/iter1.06
Evaluator_Draft4_Properties_Triad_Closed
1098.725811012578
ns/iter1012.6257360984926
ns/iter1.09
Evaluator_Draft4_Properties_Triad_Required
1456.2635308510182
ns/iter1353.9441769537762
ns/iter1.08
Evaluator_Draft4_Properties_Closed
192.32855140779523
ns/iter193.02644200289626
ns/iter1.00
Evaluator_Draft4_Non_Recursive_Ref
55.17073756219704
ns/iter51.71437035791622
ns/iter1.07
Evaluator_Draft4_Pattern_Properties_True
2160.320657547888
ns/iter2077.699672455447
ns/iter1.04
Evaluator_Draft4_Ref_To_Single_Property
39.191341803969856
ns/iter37.02587520321882
ns/iter1.06
Evaluator_Draft4_Additional_Properties_Type
114.43019404563974
ns/iter106.6153732489056
ns/iter1.07
Evaluator_Draft4_Nested_Oneof
124.70644540058983
ns/iter124.48022621856327
ns/iter1.00
Evaluator_Draft4_Long_Enum
21.122820134032565
ns/iter20.492743288471033
ns/iter1.03
Evaluator_Draft4_Type_Object
10.979960175049643
ns/iter11.520518209398302
ns/iter0.95
Compiler_2019_09_OMC_JSON_V2
11346374488.000038
ns/iter11388352207.000025
ns/iter1.00
Compiler_Draft6_AdaptiveCard
65120359871.00001
ns/iter64957627198.00007
ns/iter1.00
This comment was automatically generated by workflow using github-action-benchmark.
8cd51b3
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
44475838899.61243
ns/iter43163286209.106445
ns/iter1.03
Compiler_2019_09_OMC_JSON_V2
8237370967.86499
ns/iter7939328908.920288
ns/iter1.04
Evaluator_Draft4_Meta_1_No_Callback
274.58410137645615
ns/iter261.6121311292643
ns/iter1.05
Evaluator_Draft4_Required_Properties
456.6259039775919
ns/iter445.85226142230573
ns/iter1.02
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
27.385231470688712
ns/iter25.983330349862285
ns/iter1.05
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
13.78896191782493
ns/iter13.60188762673659
ns/iter1.01
Evaluator_Draft4_Items_Schema
754.9633093460683
ns/iter721.0098345120753
ns/iter1.05
Evaluator_Draft4_Nested_Object
2.0179182722940516
ns/iter1.970710735360721
ns/iter1.02
Evaluator_Draft4_Properties_Triad_Optional
1058.7041862618446
ns/iter1038.119546295882
ns/iter1.02
Evaluator_Draft4_Properties_Triad_Closed
857.1285911750468
ns/iter830.1092206481844
ns/iter1.03
Evaluator_Draft4_Properties_Triad_Required
1072.990119486047
ns/iter1026.2537738856097
ns/iter1.05
Evaluator_Draft4_Properties_Closed
108.91765027138105
ns/iter105.51387473396117
ns/iter1.03
Evaluator_Draft4_Non_Recursive_Ref
22.179048565324546
ns/iter21.705791301893694
ns/iter1.02
Evaluator_Draft4_Pattern_Properties_True
1630.768312714343
ns/iter1597.8431191635477
ns/iter1.02
Evaluator_Draft4_Ref_To_Single_Property
13.096144452254837
ns/iter13.053783470341177
ns/iter1.00
Evaluator_Draft4_Additional_Properties_Type
36.5510701559691
ns/iter35.56972489472655
ns/iter1.03
Evaluator_Draft4_Nested_Oneof
89.26536200747948
ns/iter88.1469560044287
ns/iter1.01
Evaluator_Draft4_Long_Enum
11.72927679980761
ns/iter11.35688983928892
ns/iter1.03
Evaluator_Draft4_Type_Object
7.204088067976533
ns/iter6.984113114960489
ns/iter1.03
Evaluator_Draft6_Property_Names
407.96188859192415
ns/iter366.7425103463669
ns/iter1.11
Evaluator_Draft7_If_Then_Else
36.91676247243378
ns/iter35.39113640631032
ns/iter1.04
Evaluator_Draft7_Vercel_1
96304.3884700335
ns/iter98709.13876021472
ns/iter0.98
Evaluator_2019_09_Unevaluated_Properties
157.53627385038195
ns/iter156.26817154477348
ns/iter1.01
Evaluator_2019_09_OMC_JSON_V2_1
6181.899375072626
ns/iter5918.0042564312225
ns/iter1.04
Evaluator_2020_12_Dynamic_Ref
588.5644996233286
ns/iter542.5725579877555
ns/iter1.08
This comment was automatically generated by workflow using github-action-benchmark.
8cd51b3
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
118045273000.00006
ns/iter119451326300.00012
ns/iter0.99
Compiler_2019_09_OMC_JSON_V2
25330988899.999966
ns/iter25521693599.999935
ns/iter0.99
Evaluator_Draft4_Meta_1_No_Callback
725.6973214284963
ns/iter716.0393973213124
ns/iter1.01
Evaluator_Draft4_Required_Properties
1040.9545312500156
ns/iter1047.0201575803069
ns/iter0.99
Evaluator_Draft4_Many_Optional_Properties_Minimal_Match
71.53971428570978
ns/iter71.03120535713207
ns/iter1.01
Evaluator_Draft4_Few_Optional_Properties_Minimal_Match
32.0193258928571
ns/iter31.926037998844237
ns/iter1.00
Evaluator_Draft4_Items_Schema
2276.039535670082
ns/iter2267.566875000426
ns/iter1.00
Evaluator_Draft4_Nested_Object
3.1033397321427816
ns/iter2.9633794642854077
ns/iter1.05
Evaluator_Draft4_Properties_Triad_Optional
4654.253866121249
ns/iter6153.902678570537
ns/iter0.76
Evaluator_Draft4_Properties_Triad_Closed
3724.883348422649
ns/iter5202.203000001191
ns/iter0.72
Evaluator_Draft4_Properties_Triad_Required
4590.758238299767
ns/iter6099.518750001413
ns/iter0.75
Evaluator_Draft4_Properties_Closed
253.87389285713525
ns/iter253.79239285712174
ns/iter1.00
Evaluator_Draft4_Non_Recursive_Ref
87.62272321428202
ns/iter88.00297374989266
ns/iter1.00
Evaluator_Draft4_Pattern_Properties_True
9526.943629715142
ns/iter15786.513392857922
ns/iter0.60
Evaluator_Draft4_Ref_To_Single_Property
32.2638839285716
ns/iter32.271966129253144
ns/iter1.00
Evaluator_Draft4_Additional_Properties_Type
173.60660314329604
ns/iter177.97497843585725
ns/iter0.98
Evaluator_Draft4_Nested_Oneof
264.1580408106248
ns/iter253.22946428567712
ns/iter1.04
Evaluator_Draft4_Long_Enum
50.79079999999294
ns/iter50.111020000008466
ns/iter1.01
Evaluator_Draft4_Type_Object
17.049990064397313
ns/iter17.04042153767778
ns/iter1.00
Evaluator_Draft6_Property_Names
942.8288648086079
ns/iter927.8456125689811
ns/iter1.02
Evaluator_Draft7_If_Then_Else
93.09349137975425
ns/iter92.82795121302408
ns/iter1.00
Evaluator_Draft7_Vercel_1
214371.21874999575
ns/iter217149.93750002523
ns/iter0.99
Evaluator_2019_09_Unevaluated_Properties
457.88010056784935
ns/iter784.7859374999291
ns/iter0.58
Evaluator_2019_09_OMC_JSON_V2_1
13990.899594199342
ns/iter13967.405279440614
ns/iter1.00
Evaluator_2020_12_Dynamic_Ref
1393.1989762507465
ns/iter1374.776305903463
ns/iter1.01
This comment was automatically generated by workflow using github-action-benchmark.