Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Analyse adjacent schemas for unevaluated(Properties|Items) #1403

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jviotti
Copy link
Member

@jviotti jviotti commented Dec 24, 2024

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark (macos/llvm)

Benchmark suite Current: 36a23e0 Previous: f6347f9 Ratio
JSON_Array_Of_Objects_Unique 330.57549055879616 ns/iter 350.0783261368201 ns/iter 0.94
JSON_Parse_1 21274.761655831408 ns/iter 23956.593791577656 ns/iter 0.89
JSON_Fast_Hash_Helm_Chart_Lock 48.76023928010727 ns/iter 51.439618804266985 ns/iter 0.95
JSON_Equality_Helm_Chart_Lock 145.29553910390567 ns/iter 151.33074014295946 ns/iter 0.96
Regex_Lower_S_Or_Upper_S_Asterisk 1.6844579288222883 ns/iter 1.6860697299810028 ns/iter 1.00
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar 1.6298416625628145 ns/iter 1.680203674517089 ns/iter 0.97
Regex_Period_Asterisk 1.578327234531377 ns/iter 1.6873647737963458 ns/iter 0.94
Regex_Group_Period_Asterisk_Group 1.6225429922480168 ns/iter 1.6871892509741542 ns/iter 0.96
Regex_Period_Plus 1.9433953580850145 ns/iter 2.018171434085955 ns/iter 0.96
Regex_Period 1.9826796017463142 ns/iter 2.086931427753131 ns/iter 0.95
Regex_Caret_Period_Plus_Dollar 1.9687001958242996 ns/iter 2.0536416232530614 ns/iter 0.96
Regex_Caret_Group_Period_Plus_Group_Dollar 1.8904534017994925 ns/iter 2.1807775463759267 ns/iter 0.87
Regex_Caret_Period_Asterisk_Dollar 1.5893419252073249 ns/iter 1.652356522531043 ns/iter 0.96
Regex_Caret_Group_Period_Asterisk_Group_Dollar 1.569083699434512 ns/iter 1.6354037864901787 ns/iter 0.96
Regex_Caret_X_Hyphen 6.40322001027453 ns/iter 6.3462348926289165 ns/iter 1.01
Regex_Period_Md_Dollar 70.27102575341085 ns/iter 67.66120706107473 ns/iter 1.04
Regex_Caret_Slash_Period_Asterisk 5.9410271579464355 ns/iter 5.60507200691765 ns/iter 1.06
Regex_Caret_Period_Range_Dollar 2.111640112828118 ns/iter 2.0839141140198767 ns/iter 1.01
Regex_Nested_Backtrack 748.5107320457445 ns/iter 725.0799249716862 ns/iter 1.03
Pointer_Object_Traverse 15.124129526499797 ns/iter 14.73742729314726 ns/iter 1.03
Pointer_Object_Try_Traverse 32.22258287685291 ns/iter 31.842507847211394 ns/iter 1.01
Pointer_Push_Back_Pointer_To_Weak_Pointer 176.15199104750204 ns/iter 175.8922715900763 ns/iter 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark (linux/llvm)

Benchmark suite Current: 36a23e0 Previous: f6347f9 Ratio
JSON_Array_Of_Objects_Unique 444.4875180338137 ns/iter 441.54550934223295 ns/iter 1.01
JSON_Parse_1 30456.304206136054 ns/iter 29978.0426181555 ns/iter 1.02
JSON_Fast_Hash_Helm_Chart_Lock 54.72685060689315 ns/iter 54.721314240073504 ns/iter 1.00
JSON_Equality_Helm_Chart_Lock 153.05188590652725 ns/iter 149.6746426322728 ns/iter 1.02
Regex_Lower_S_Or_Upper_S_Asterisk 2.1999929631648567 ns/iter 2.2018528052121185 ns/iter 1.00
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar 2.226213058802418 ns/iter 2.207213269398874 ns/iter 1.01
Regex_Period_Asterisk 2.2168544082125727 ns/iter 2.1977176576903403 ns/iter 1.01
Regex_Group_Period_Asterisk_Group 2.210291152894215 ns/iter 2.2194983415055254 ns/iter 1.00
Regex_Period_Plus 2.485617796886916 ns/iter 2.4860343073239157 ns/iter 1.00
Regex_Period 2.493797930735774 ns/iter 2.485733548358411 ns/iter 1.00
Regex_Caret_Period_Plus_Dollar 2.486118464789103 ns/iter 2.501716776155547 ns/iter 0.99
Regex_Caret_Group_Period_Plus_Group_Dollar 2.500238765543747 ns/iter 2.490697284525265 ns/iter 1.00
Regex_Caret_Period_Asterisk_Dollar 3.418700221659143 ns/iter 3.419939274551826 ns/iter 1.00
Regex_Caret_Group_Period_Asterisk_Group_Dollar 3.420461350168123 ns/iter 3.42023491729519 ns/iter 1.00
Regex_Caret_X_Hyphen 12.53833317348595 ns/iter 13.04895075766299 ns/iter 0.96
Regex_Period_Md_Dollar 74.01210925353313 ns/iter 75.55394603727576 ns/iter 0.98
Regex_Caret_Slash_Period_Asterisk 7.151007654662833 ns/iter 7.1497795194710285 ns/iter 1.00
Regex_Caret_Period_Range_Dollar 3.7332965599278793 ns/iter 3.7282405719925267 ns/iter 1.00
Regex_Nested_Backtrack 511.97853427915334 ns/iter 533.8589267639895 ns/iter 0.96
Pointer_Object_Traverse 44.842499894578765 ns/iter 45.13569372398351 ns/iter 0.99
Pointer_Object_Try_Traverse 52.303001375177956 ns/iter 52.36056700186736 ns/iter 1.00
Pointer_Push_Back_Pointer_To_Weak_Pointer 353.47577278609543 ns/iter 385.98935525728115 ns/iter 0.92

This comment was automatically generated by workflow using github-action-benchmark.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark (windows/msvc)

Benchmark suite Current: 36a23e0 Previous: f6347f9 Ratio
JSON_Array_Of_Objects_Unique 416.505620882654 ns/iter 418.2946465032532 ns/iter 1.00
JSON_Parse_1 81366.93080358677 ns/iter 79697.25446430281 ns/iter 1.02
JSON_Fast_Hash_Helm_Chart_Lock 53.645480000000134 ns/iter 51.66134821428565 ns/iter 1.04
JSON_Equality_Helm_Chart_Lock 213.3312962798129 ns/iter 212.39195926824837 ns/iter 1.00
Regex_Lower_S_Or_Upper_S_Asterisk 8.180424107140688 ns/iter 8.12850398156832 ns/iter 1.01
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar 7.937979910713925 ns/iter 7.79060487593349 ns/iter 1.02
Regex_Period_Asterisk 8.04892299107201 ns/iter 8.157583892154124 ns/iter 0.99
Regex_Group_Period_Asterisk_Group 7.927096839612102 ns/iter 7.891633928571094 ns/iter 1.00
Regex_Period_Plus 8.192342374140994 ns/iter 8.076863803225951 ns/iter 1.01
Regex_Period 7.9284013038883945 ns/iter 7.938559785986899 ns/iter 1.00
Regex_Caret_Period_Plus_Dollar 7.835908893591088 ns/iter 7.895540589751343 ns/iter 0.99
Regex_Caret_Group_Period_Plus_Group_Dollar 8.22222987400702 ns/iter 8.189229687502575 ns/iter 1.00
Regex_Caret_Period_Asterisk_Dollar 7.759205357142917 ns/iter 8.28839326657136 ns/iter 0.94
Regex_Caret_Group_Period_Asterisk_Group_Dollar 7.828872286479443 ns/iter 7.767005322471121 ns/iter 1.01
Regex_Caret_X_Hyphen 11.703767857142113 ns/iter 11.611246875002479 ns/iter 1.01
Regex_Period_Md_Dollar 143.72043108388672 ns/iter 144.9344064761679 ns/iter 0.99
Regex_Caret_Slash_Period_Asterisk 11.813910215119984 ns/iter 12.008360714284143 ns/iter 0.98
Regex_Caret_Period_Range_Dollar 8.99983254910637 ns/iter 8.71035263968519 ns/iter 1.03
Regex_Nested_Backtrack 588.5708928569702 ns/iter 584.0568000000985 ns/iter 1.01
Pointer_Object_Traverse 56.00793999999496 ns/iter 56.18575892855558 ns/iter 1.00
Pointer_Object_Try_Traverse 75.87664062500872 ns/iter 75.69966071429235 ns/iter 1.00
Pointer_Push_Back_Pointer_To_Weak_Pointer 173.97812325746307 ns/iter 179.87390267012805 ns/iter 0.97

This comment was automatically generated by workflow using github-action-benchmark.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark (linux/gcc)

Benchmark suite Current: 36a23e0 Previous: f6347f9 Ratio
Pointer_Object_Traverse 44.13474588967966 ns/iter 44.6733807294142 ns/iter 0.99
Pointer_Object_Try_Traverse 22.403703117901564 ns/iter 22.52217625581395 ns/iter 0.99
Pointer_Push_Back_Pointer_To_Weak_Pointer 213.35833904000617 ns/iter 213.21740664424007 ns/iter 1.00
Regex_Lower_S_Or_Upper_S_Asterisk 3.129526136047931 ns/iter 3.138841636317124 ns/iter 1.00
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar 3.140063339347461 ns/iter 3.1261196731382106 ns/iter 1.00
Regex_Period_Asterisk 3.1290639384096144 ns/iter 3.120905794850268 ns/iter 1.00
Regex_Group_Period_Asterisk_Group 3.128326625059233 ns/iter 3.133048435444098 ns/iter 1.00
Regex_Period_Plus 3.1271325991426435 ns/iter 3.1234627681275025 ns/iter 1.00
Regex_Period 3.1239092706068536 ns/iter 3.126362215064368 ns/iter 1.00
Regex_Caret_Period_Plus_Dollar 3.1248343812203894 ns/iter 3.126353422654673 ns/iter 1.00
Regex_Caret_Group_Period_Plus_Group_Dollar 3.131292146794728 ns/iter 3.119401938787231 ns/iter 1.00
Regex_Caret_Period_Asterisk_Dollar 3.7321108755125225 ns/iter 3.73098124235674 ns/iter 1.00
Regex_Caret_Group_Period_Asterisk_Group_Dollar 3.7290626528610566 ns/iter 3.7274707299611327 ns/iter 1.00
Regex_Caret_X_Hyphen 12.429960582922494 ns/iter 12.432616511617594 ns/iter 1.00
Regex_Period_Md_Dollar 89.58925324333721 ns/iter 90.55907620277156 ns/iter 0.99
Regex_Caret_Slash_Period_Asterisk 7.149651172511222 ns/iter 7.1472343962018225 ns/iter 1.00
Regex_Caret_Period_Range_Dollar 4.0539662454535135 ns/iter 4.040109518178915 ns/iter 1.00
Regex_Nested_Backtrack 817.2303629223663 ns/iter 818.5525336667002 ns/iter 1.00
JSON_Array_Of_Objects_Unique 385.8802091932223 ns/iter 415.8646889769387 ns/iter 0.93
JSON_Parse_1 33031.93269094061 ns/iter 32887.64606157893 ns/iter 1.00
JSON_Fast_Hash_Helm_Chart_Lock 64.29146354459593 ns/iter 66.39915378833666 ns/iter 0.97
JSON_Equality_Helm_Chart_Lock 142.62854959867997 ns/iter 139.79273298008636 ns/iter 1.02

This comment was automatically generated by workflow using github-action-benchmark.

@jviotti jviotti force-pushed the better-unevaluated branch 5 times, most recently from 75006b3 to b948c91 Compare December 24, 2024 23:14
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant