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

patch roles_logic_sv2 with_serde flag #1101

Merged

Conversation

plebhash
Copy link
Collaborator

this framing_sv2/with_serde flag was added to roles_logic_sv2 aiming to unblock the SemVer CI introduced via #985

unfortunately the with_serde feature flag is broken for framing_sv2, and that is having undesired consequences on downstream crates that use roles_logic_sv2 as dependencies

via #1100 we can keep our SemVer CI unblocked by this problem, but we also need to make sure roles_logic_sv2 does not include framing_sv2/with_serde

this PR is patching roles_logic_sv2 to achieve this goal

Copy link
Contributor

github-actions bot commented Aug 13, 2024

🐰Bencher

ReportTue, August 13, 2024 at 20:53:54 UTC
ProjectStratum v2 (SRI)
Branchpatch-roles-logic-sv2-serde-flag
Testbedsv2

🚨 8 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client_sv2_handle_message_commonEstimated Cycles (estimated cycles)🚨 (view plot | view alert)2,145.00 (+4.49%)2,137.50 (100.35%)
client_sv2_handle_message_commonRAM Accesses (accesses)🚨 (view plot | view alert)39.00 (+6.19%)38.83 (100.44%)
client_sv2_mining_message_submit_standard_serialize_deserializeInstructions (instructions)🚨 (view plot | view alert)10,591.00 (+0.45%)10,572.33 (100.18%)
client_sv2_mining_message_submit_standard_serialize_deserializeL1 Accesses (accesses)🚨 (view plot | view alert)15,405.00 (+0.41%)15,380.13 (100.16%)
client_sv2_open_channel_serialize_deserializeInstructions (instructions)🚨 (view plot | view alert)8,027.00 (+0.52%)8,012.93 (100.18%)
client_sv2_open_channel_serialize_deserializeL1 Accesses (accesses)🚨 (view plot | view alert)11,678.00 (+0.53%)11,654.65 (100.20%)
client_sv2_setup_connection_serialize_deserializeInstructions (instructions)🚨 (view plot | view alert)14,855.00 (+0.29%)14,840.35 (100.10%)
client_sv2_setup_connection_serialize_deserializeL1 Accesses (accesses)🚨 (view plot | view alert)21,815.00 (+0.28%)21,791.36 (100.11%)

Click to view all benchmark results
BenchmarkEstimated CyclesEstimated Cycles Results
estimated cycles | (Δ%)
Estimated Cycles Upper Boundary
estimated cycles | (%)
InstructionsInstructions Results
instructions | (Δ%)
Instructions Upper Boundary
instructions | (%)
L1 AccessesL1 Accesses Results
accesses | (Δ%)
L1 Accesses Upper Boundary
accesses | (%)
L2 AccessesL2 Accesses Results
accesses | (Δ%)
L2 Accesses Upper Boundary
accesses | (%)
RAM AccessesRAM Accesses Results
accesses | (Δ%)
RAM Accesses Upper Boundary
accesses | (%)
client_sv2_handle_message_common🚨 (view plot | view alert)2,145.00 (+4.49%)2,137.50 (100.35%)✅ (view plot)473.00 (+0.48%)486.30 (97.27%)✅ (view plot)730.00 (-0.29%)754.97 (96.69%)✅ (view plot)10.00 (+42.12%)10.93 (91.52%)🚨 (view plot | view alert)39.00 (+6.19%)38.83 (100.44%)
client_sv2_handle_message_mining✅ (view plot)8,227.00 (+0.36%)8,336.23 (98.69%)✅ (view plot)2,143.00 (+0.72%)2,171.70 (98.68%)✅ (view plot)3,172.00 (+0.85%)3,216.94 (98.60%)✅ (view plot)31.00 (-18.93%)44.17 (70.18%)✅ (view plot)140.00 (+0.80%)142.02 (98.58%)
client_sv2_mining_message_submit_standard✅ (view plot)6,358.00 (+1.27%)6,394.59 (99.43%)✅ (view plot)1,756.00 (+0.36%)1,763.52 (99.57%)✅ (view plot)2,558.00 (+0.16%)2,575.99 (99.30%)✅ (view plot)18.00 (+2.91%)22.57 (79.77%)✅ (view plot)106.00 (+2.01%)107.08 (99.00%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)14,881.00 (+0.69%)15,038.66 (98.95%)✅ (view plot)4,700.00 (+0.13%)4,707.52 (99.84%)✅ (view plot)6,756.00 (+0.02%)6,775.19 (99.72%)✅ (view plot)50.00 (+5.57%)52.28 (95.63%)✅ (view plot)225.00 (+1.12%)230.07 (97.80%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)27,655.00 (+0.62%)27,853.83 (99.29%)🚨 (view plot | view alert)10,591.00 (+0.45%)10,572.33 (100.18%)🚨 (view plot | view alert)15,405.00 (+0.41%)15,380.13 (100.16%)✅ (view plot)84.00 (+0.33%)89.29 (94.07%)✅ (view plot)338.00 (+0.91%)345.41 (97.85%)
client_sv2_open_channel✅ (view plot)4,341.00 (-3.25%)4,618.44 (93.99%)✅ (view plot)1,461.00 (+0.05%)1,474.33 (99.10%)✅ (view plot)2,161.00 (+0.37%)2,173.29 (99.43%)✅ (view plot)9.00 (-24.20%)15.30 (58.81%)✅ (view plot)61.00 (-6.13%)68.40 (89.18%)
client_sv2_open_channel_serialize✅ (view plot)14,084.00 (-0.91%)14,459.60 (97.40%)✅ (view plot)5,064.00 (+0.02%)5,077.33 (99.74%)✅ (view plot)7,324.00 (+0.08%)7,339.35 (99.79%)✅ (view plot)36.00 (-3.37%)41.96 (85.80%)✅ (view plot)188.00 (-1.92%)198.85 (94.54%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)22,653.00 (+0.05%)23,021.31 (98.40%)🚨 (view plot | view alert)8,027.00 (+0.52%)8,012.93 (100.18%)🚨 (view plot | view alert)11,678.00 (+0.53%)11,654.65 (100.20%)✅ (view plot)74.00 (+0.92%)81.79 (90.47%)✅ (view plot)303.00 (-0.50%)314.87 (96.23%)
client_sv2_setup_connection✅ (view plot)4,715.00 (+0.34%)4,765.13 (98.95%)✅ (view plot)1,502.00 (+0.05%)1,515.33 (99.12%)✅ (view plot)2,275.00 (-0.08%)2,299.46 (98.94%)✅ (view plot)12.00 (+30.69%)13.76 (87.21%)✅ (view plot)68.00 (+0.16%)69.63 (97.67%)
client_sv2_setup_connection_serialize✅ (view plot)16,172.00 (-0.55%)16,489.37 (98.08%)✅ (view plot)5,963.00 (+0.01%)5,976.33 (99.78%)✅ (view plot)8,657.00 (+0.02%)8,677.44 (99.76%)✅ (view plot)47.00 (+5.08%)49.17 (95.59%)✅ (view plot)208.00 (-1.40%)217.48 (95.64%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)35,640.00 (+0.29%)35,753.16 (99.68%)🚨 (view plot | view alert)14,855.00 (+0.29%)14,840.35 (100.10%)🚨 (view plot | view alert)21,815.00 (+0.28%)21,791.36 (100.11%)✅ (view plot)98.00 (-1.55%)112.52 (87.10%)✅ (view plot)381.00 (+0.36%)384.64 (99.05%)

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

Copy link
Contributor

github-actions bot commented Aug 13, 2024

🐰Bencher

ReportTue, August 13, 2024 at 20:53:36 UTC
ProjectStratum v2 (SRI)
Branchpatch-roles-logic-sv2-serde-flag
Testbedsv2
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client_sv2_handle_message_common✅ (view plot)44.87 (+0.68%)45.25 (99.16%)
client_sv2_handle_message_mining✅ (view plot)74.58 (+2.36%)80.33 (92.85%)
client_sv2_mining_message_submit_standard✅ (view plot)14.64 (-0.11%)14.69 (99.63%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)266.47 (+0.69%)284.22 (93.75%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)582.07 (-2.03%)627.50 (92.76%)
client_sv2_open_channel✅ (view plot)164.96 (-0.55%)173.40 (95.13%)
client_sv2_open_channel_serialize✅ (view plot)282.74 (-0.07%)293.38 (96.37%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)384.60 (+1.64%)423.57 (90.80%)
client_sv2_setup_connection✅ (view plot)158.25 (-3.51%)174.79 (90.54%)
client_sv2_setup_connection_serialize✅ (view plot)451.01 (-4.69%)507.52 (88.87%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)956.90 (-1.49%)1,038.96 (92.10%)

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

Copy link
Contributor

github-actions bot commented Aug 13, 2024

🐰Bencher

ReportTue, August 13, 2024 at 20:53:36 UTC
ProjectStratum v2 (SRI)
Branch1101/merge
Testbedsv1

🚨 1 ALERT: Threshold Boundary Limit exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handleLatency (nanoseconds (ns))🚨 (view plot | view alert)809.06 (+8.00%)785.26 (103.03%)

Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client-submit-serialize✅ (view plot)6,492.80 (-6.13%)7,360.71 (88.21%)
client-submit-serialize-deserialize✅ (view plot)7,484.20 (-4.54%)8,328.35 (89.86%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle✅ (view plot)7,990.90 (-4.90%)8,854.92 (90.24%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle✅ (view plot)905.41 (+0.77%)926.47 (97.73%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize✅ (view plot)701.60 (+0.62%)717.96 (97.72%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize✅ (view plot)254.32 (+2.43%)255.56 (99.51%)
client-sv1-get-authorize/client-sv1-get-authorize✅ (view plot)161.54 (+2.69%)162.74 (99.26%)
client-sv1-get-submit✅ (view plot)6,284.90 (-5.96%)7,144.82 (87.96%)
client-sv1-get-subscribe/client-sv1-get-subscribe✅ (view plot)274.57 (-1.38%)291.00 (94.35%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle🚨 (view plot | view alert)809.06 (+8.00%)785.26 (103.03%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize✅ (view plot)625.01 (+1.55%)641.25 (97.47%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize✅ (view plot)204.80 (-0.89%)219.78 (93.19%)

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

Copy link
Contributor

github-actions bot commented Aug 13, 2024

🐰Bencher

ReportTue, August 13, 2024 at 20:53:47 UTC
ProjectStratum v2 (SRI)
Branchpatch-roles-logic-sv2-serde-flag
Testbedsv1

🚨 2 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
serialize_deserialize_handle_authorizeL2 Accesses (accesses)🚨 (view plot | view alert)66.00 (+11.80%)65.54 (100.70%)
serialize_deserialize_handle_authorizeRAM Accesses (accesses)🚨 (view plot | view alert)368.00 (+1.11%)367.43 (100.16%)

Click to view all benchmark results
BenchmarkEstimated CyclesEstimated Cycles Results
estimated cycles | (Δ%)
Estimated Cycles Upper Boundary
estimated cycles | (%)
InstructionsInstructions Results
instructions | (Δ%)
Instructions Upper Boundary
instructions | (%)
L1 AccessesL1 Accesses Results
accesses | (Δ%)
L1 Accesses Upper Boundary
accesses | (%)
L2 AccessesL2 Accesses Results
accesses | (Δ%)
L2 Accesses Upper Boundary
accesses | (%)
RAM AccessesRAM Accesses Results
accesses | (Δ%)
RAM Accesses Upper Boundary
accesses | (%)
get_authorize✅ (view plot)8,542.00 (+1.23%)8,727.77 (97.87%)✅ (view plot)3,746.00 (+0.15%)3,854.74 (97.18%)✅ (view plot)5,247.00 (+0.04%)5,400.64 (97.16%)✅ (view plot)8.00 (+0.45%)10.38 (77.06%)✅ (view plot)93.00 (+3.21%)94.19 (98.73%)
get_submit✅ (view plot)95,507.00 (-0.05%)96,137.60 (99.34%)✅ (view plot)59,439.00 (-0.05%)59,776.31 (99.44%)✅ (view plot)85,352.00 (-0.06%)85,833.18 (99.44%)✅ (view plot)57.00 (+3.10%)62.52 (91.18%)✅ (view plot)282.00 (-0.03%)287.66 (98.03%)
get_subscribe✅ (view plot)7,991.00 (+0.17%)8,269.42 (96.63%)✅ (view plot)2,841.00 (+0.39%)2,939.32 (96.65%)✅ (view plot)3,971.00 (+0.43%)4,098.96 (96.88%)✅ (view plot)13.00 (-19.38%)19.83 (65.54%)✅ (view plot)113.00 (+0.30%)116.93 (96.64%)
serialize_authorize✅ (view plot)12,261.00 (+0.44%)12,502.62 (98.07%)✅ (view plot)5,317.00 (+0.10%)5,425.74 (98.00%)✅ (view plot)7,411.00 (+0.05%)7,564.02 (97.98%)✅ (view plot)11.00 (+1.65%)13.37 (82.27%)✅ (view plot)137.00 (+1.04%)140.24 (97.69%)
serialize_deserialize_authorize✅ (view plot)24,562.00 (+0.37%)24,710.62 (99.40%)✅ (view plot)9,898.00 (-0.02%)10,025.45 (98.73%)✅ (view plot)13,957.00 (-0.07%)14,149.85 (98.64%)✅ (view plot)35.00 (-4.34%)41.52 (84.30%)✅ (view plot)298.00 (+1.04%)298.00 (100.00%)
serialize_deserialize_handle_authorize✅ (view plot)30,321.00 (+0.56%)30,354.66 (99.89%)✅ (view plot)12,101.00 (+0.05%)12,209.74 (99.11%)✅ (view plot)17,111.00 (-0.04%)17,278.82 (99.03%)🚨 (view plot | view alert)66.00 (+11.80%)65.54 (100.70%)🚨 (view plot | view alert)368.00 (+1.11%)367.43 (100.16%)
serialize_deserialize_handle_submit✅ (view plot)126,324.00 (-0.07%)127,025.80 (99.45%)✅ (view plot)73,224.00 (-0.04%)73,617.68 (99.47%)✅ (view plot)104,944.00 (-0.04%)105,508.25 (99.47%)✅ (view plot)125.00 (+3.58%)131.52 (95.04%)✅ (view plot)593.00 (-0.30%)599.16 (98.97%)
serialize_deserialize_handle_subscribe✅ (view plot)27,503.00 (+0.17%)27,603.19 (99.64%)✅ (view plot)9,643.00 (+0.11%)9,741.32 (98.99%)✅ (view plot)13,638.00 (+0.11%)13,774.76 (99.01%)✅ (view plot)64.00 (-2.87%)73.71 (86.83%)✅ (view plot)387.00 (+0.31%)388.61 (99.59%)
serialize_deserialize_submit✅ (view plot)114,955.00 (-0.11%)115,648.46 (99.40%)✅ (view plot)68,001.00 (-0.08%)68,400.22 (99.42%)✅ (view plot)97,555.00 (-0.10%)98,146.88 (99.40%)✅ (view plot)71.00 (+2.05%)75.28 (94.32%)✅ (view plot)487.00 (-0.22%)492.31 (98.92%)
serialize_deserialize_subscribe✅ (view plot)22,884.00 (+0.04%)23,109.85 (99.02%)✅ (view plot)8,195.00 (+0.11%)8,297.00 (98.77%)✅ (view plot)11,544.00 (+0.12%)11,682.21 (98.82%)✅ (view plot)35.00 (-10.95%)44.17 (79.24%)✅ (view plot)319.00 (+0.15%)321.48 (99.23%)
serialize_submit✅ (view plot)99,786.00 (-0.11%)100,465.19 (99.32%)✅ (view plot)61,483.00 (-0.05%)61,825.66 (99.45%)✅ (view plot)88,201.00 (-0.06%)88,686.70 (99.45%)✅ (view plot)56.00 (+0.29%)62.08 (90.20%)✅ (view plot)323.00 (-0.50%)329.15 (98.13%)
serialize_subscribe✅ (view plot)11,294.00 (-0.28%)11,604.16 (97.33%)✅ (view plot)4,188.00 (+0.26%)4,286.32 (97.71%)✅ (view plot)5,829.00 (+0.29%)5,958.20 (97.83%)✅ (view plot)15.00 (-8.20%)18.95 (79.14%)✅ (view plot)154.00 (-0.77%)159.72 (96.42%)

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

@plebhash plebhash force-pushed the patch-roles-logic-sv2-serde-flag branch from c95f6e0 to 56a9334 Compare August 13, 2024 20:45
@plebhash plebhash merged commit a090844 into stratum-mining:dev Aug 13, 2024
33 checks passed
@plebhash plebhash deleted the patch-roles-logic-sv2-serde-flag branch August 13, 2024 21:06
@plebhash plebhash mentioned this pull request Aug 18, 2024
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.

2 participants