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

Add missing TemplateDistributionTypes case #960

Merged

Conversation

jbesraa
Copy link
Contributor

@jbesraa jbesraa commented Jun 7, 2024

...to TryFrom<(u8, &'a mut [u8])> for PoolMessages

resolves #936

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportWed, June 12, 2024 at 14:06:22 UTC
ProjectStratum v2 (SRI)
Branch2024-06-07-fix-poolmessage-tryfrom
Testbedsv1

🚨 2 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
serialize_deserialize_authorizeRAM Accesses (accesses)🚨 (view plot | view alert)298.00 (+1.08%)297.66 (100.11%)
serialize_deserialize_handle_authorizeRAM Accesses (accesses)🚨 (view plot | view alert)368.00 (+1.14%)366.94 (100.29%)

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,504.00 (+0.82%)8,723.96 (97.48%)✅ (view plot)3,746.00 (+0.15%)3,855.91 (97.15%)✅ (view plot)5,249.00 (+0.07%)5,402.42 (97.16%)✅ (view plot)7.00 (-12.10%)10.40 (67.28%)✅ (view plot)92.00 (+2.22%)93.95 (97.92%)
get_submit✅ (view plot)95,475.00 (-0.08%)96,144.45 (99.30%)✅ (view plot)59,439.00 (-0.05%)59,779.74 (99.43%)✅ (view plot)85,360.00 (-0.05%)85,838.06 (99.44%)✅ (view plot)49.00 (-11.29%)62.50 (78.39%)✅ (view plot)282.00 (-0.04%)287.74 (98.01%)
get_subscribe✅ (view plot)7,957.00 (-0.26%)8,272.64 (96.18%)✅ (view plot)2,841.00 (+0.39%)2,940.35 (96.62%)✅ (view plot)3,972.00 (+0.46%)4,100.19 (96.87%)✅ (view plot)13.00 (-20.02%)19.78 (65.72%)✅ (view plot)112.00 (-0.58%)116.96 (95.76%)
serialize_authorize✅ (view plot)12,257.00 (+0.42%)12,502.63 (98.04%)✅ (view plot)5,317.00 (+0.10%)5,426.91 (97.97%)✅ (view plot)7,412.00 (+0.06%)7,565.77 (97.97%)✅ (view plot)10.00 (-7.56%)13.39 (74.68%)✅ (view plot)137.00 (+1.09%)140.19 (97.73%)
serialize_deserialize_authorize✅ (view plot)24,554.00 (+0.35%)24,706.94 (99.38%)✅ (view plot)9,898.00 (-0.02%)10,026.83 (98.72%)✅ (view plot)13,959.00 (-0.06%)14,151.96 (98.64%)✅ (view plot)33.00 (-9.97%)41.59 (79.35%)🚨 (view plot | view alert)298.00 (+1.08%)297.66 (100.11%)
serialize_deserialize_handle_authorize✅ (view plot)30,293.00 (+0.49%)30,339.63 (99.85%)✅ (view plot)12,101.00 (+0.04%)12,210.91 (99.10%)✅ (view plot)17,118.00 (+0.00%)17,280.93 (99.06%)✅ (view plot)59.00 (+0.40%)64.67 (91.23%)🚨 (view plot | view alert)368.00 (+1.14%)366.94 (100.29%)
serialize_deserialize_handle_submit✅ (view plot)126,372.00 (-0.03%)127,033.51 (99.48%)✅ (view plot)73,224.00 (-0.04%)73,621.57 (99.46%)✅ (view plot)104,947.00 (-0.04%)105,513.83 (99.46%)✅ (view plot)120.00 (-0.48%)131.43 (91.30%)✅ (view plot)595.00 (+0.03%)599.21 (99.30%)
serialize_deserialize_handle_subscribe✅ (view plot)27,457.00 (+0.01%)27,603.71 (99.47%)✅ (view plot)9,643.00 (+0.11%)9,742.35 (98.98%)✅ (view plot)13,642.00 (+0.14%)13,776.13 (99.03%)✅ (view plot)61.00 (-7.58%)73.95 (82.49%)✅ (view plot)386.00 (+0.06%)388.55 (99.34%)
serialize_deserialize_submit✅ (view plot)114,999.00 (-0.07%)115,655.29 (99.43%)✅ (view plot)68,001.00 (-0.08%)68,404.14 (99.41%)✅ (view plot)97,559.00 (-0.09%)98,152.60 (99.40%)✅ (view plot)65.00 (-6.46%)75.24 (86.40%)✅ (view plot)489.00 (+0.18%)492.39 (99.31%)
serialize_deserialize_subscribe✅ (view plot)22,888.00 (+0.06%)23,112.51 (99.03%)✅ (view plot)8,195.00 (+0.11%)8,298.08 (98.76%)✅ (view plot)11,543.00 (+0.12%)11,683.60 (98.80%)✅ (view plot)36.00 (-8.71%)44.04 (81.74%)✅ (view plot)319.00 (+0.15%)321.50 (99.22%)
serialize_submit✅ (view plot)99,792.00 (-0.10%)100,472.45 (99.32%)✅ (view plot)61,483.00 (-0.05%)61,829.15 (99.44%)✅ (view plot)88,207.00 (-0.05%)88,691.62 (99.45%)✅ (view plot)49.00 (-12.24%)62.14 (78.85%)✅ (view plot)324.00 (-0.21%)329.21 (98.42%)
serialize_subscribe✅ (view plot)11,294.00 (-0.30%)11,608.13 (97.29%)✅ (view plot)4,188.00 (+0.26%)4,287.35 (97.68%)✅ (view plot)5,829.00 (+0.29%)5,959.47 (97.81%)✅ (view plot)15.00 (-8.54%)18.99 (79.00%)✅ (view plot)154.00 (-0.80%)159.78 (96.38%)

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

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportWed, June 12, 2024 at 14:06:09 UTC
ProjectStratum v2 (SRI)
Branch2024-06-07-fix-poolmessage-tryfrom
Testbedsv2

🚨 14 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client_sv2_handle_message_commonL2 Accesses (accesses)🚨 (view plot | view alert)11.00 (+57.14%)10.87 (101.24%)
client_sv2_mining_message_submit_standardL2 Accesses (accesses)🚨 (view plot | view alert)27.00 (+52.51%)23.70 (113.95%)
client_sv2_mining_message_submit_standard_serializeL2 Accesses (accesses)🚨 (view plot | view alert)56.00 (+18.03%)52.92 (105.82%)
client_sv2_mining_message_submit_standard_serialize_deserializeInstructions (instructions)🚨 (view plot | view alert)10,585.00 (+0.40%)10,568.66 (100.15%)
client_sv2_mining_message_submit_standard_serialize_deserializeL1 Accesses (accesses)🚨 (view plot | view alert)15,398.00 (+0.37%)15,375.70 (100.15%)
client_sv2_mining_message_submit_standard_serialize_deserializeL2 Accesses (accesses)🚨 (view plot | view alert)90.00 (+7.38%)89.65 (100.40%)
client_sv2_open_channel_serializeL2 Accesses (accesses)🚨 (view plot | view alert)43.00 (+15.06%)42.37 (101.48%)
client_sv2_open_channel_serialize_deserializeInstructions (instructions)🚨 (view plot | view alert)8,027.00 (+0.53%)8,011.03 (100.20%)
client_sv2_open_channel_serialize_deserializeL1 Accesses (accesses)🚨 (view plot | view alert)11,671.00 (+0.48%)11,649.74 (100.18%)
client_sv2_open_channel_serialize_deserializeL2 Accesses (accesses)🚨 (view plot | view alert)85.00 (+15.53%)83.03 (102.37%)
client_sv2_setup_connectionL2 Accesses (accesses)🚨 (view plot | view alert)15.00 (+63.31%)13.96 (107.42%)
client_sv2_setup_connection_serializeL2 Accesses (accesses)🚨 (view plot | view alert)50.00 (+11.80%)49.31 (101.39%)
client_sv2_setup_connection_serialize_deserializeInstructions (instructions)🚨 (view plot | view alert)14,855.00 (+0.29%)14,838.36 (100.11%)
client_sv2_setup_connection_serialize_deserializeL1 Accesses (accesses)🚨 (view plot | view alert)21,811.00 (+0.27%)21,787.85 (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)2,081.00 (+1.51%)2,127.96 (97.79%)✅ (view plot)473.00 (+0.46%)486.80 (97.16%)✅ (view plot)731.00 (-0.19%)755.65 (96.74%)🚨 (view plot | view alert)11.00 (+57.14%)10.87 (101.24%)✅ (view plot)37.00 (+0.96%)38.56 (95.97%)
client_sv2_handle_message_mining✅ (view plot)8,257.00 (+0.70%)8,344.68 (98.95%)✅ (view plot)2,137.00 (+0.46%)2,171.37 (98.42%)✅ (view plot)3,157.00 (+0.40%)3,215.93 (98.17%)✅ (view plot)40.00 (+3.70%)43.68 (91.58%)✅ (view plot)140.00 (+0.77%)142.19 (98.46%)
client_sv2_mining_message_submit_standard✅ (view plot)6,320.00 (+0.66%)6,397.08 (98.80%)✅ (view plot)1,750.00 (+0.02%)1,763.54 (99.23%)✅ (view plot)2,545.00 (-0.34%)2,576.03 (98.80%)🚨 (view plot | view alert)27.00 (+52.51%)23.70 (113.95%)✅ (view plot)104.00 (+0.11%)107.02 (97.18%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)14,695.00 (-0.54%)15,033.08 (97.75%)✅ (view plot)4,694.00 (+0.01%)4,707.54 (99.71%)✅ (view plot)6,750.00 (-0.07%)6,775.63 (99.62%)🚨 (view plot | view alert)56.00 (+18.03%)52.92 (105.82%)✅ (view plot)219.00 (-1.52%)229.95 (95.24%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)27,503.00 (+0.09%)27,845.62 (98.77%)🚨 (view plot | view alert)10,585.00 (+0.40%)10,568.66 (100.15%)🚨 (view plot | view alert)15,398.00 (+0.37%)15,375.70 (100.15%)🚨 (view plot | view alert)90.00 (+7.38%)89.65 (100.40%)✅ (view plot)333.00 (-0.54%)345.30 (96.44%)
client_sv2_open_channel✅ (view plot)4,417.00 (-1.66%)4,610.58 (95.80%)✅ (view plot)1,461.00 (+0.05%)1,474.82 (99.06%)✅ (view plot)2,157.00 (+0.19%)2,173.59 (99.24%)✅ (view plot)11.00 (-8.19%)15.24 (72.20%)✅ (view plot)63.00 (-3.24%)68.16 (92.43%)
client_sv2_open_channel_serialize✅ (view plot)14,010.00 (-1.43%)14,463.94 (96.86%)✅ (view plot)5,064.00 (+0.01%)5,077.82 (99.73%)✅ (view plot)7,320.00 (+0.03%)7,339.86 (99.73%)🚨 (view plot | view alert)43.00 (+15.06%)42.37 (101.48%)✅ (view plot)185.00 (-3.49%)199.03 (92.95%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)22,561.00 (-0.35%)23,024.07 (97.99%)🚨 (view plot | view alert)8,027.00 (+0.53%)8,011.03 (100.20%)🚨 (view plot | view alert)11,671.00 (+0.48%)11,649.74 (100.18%)🚨 (view plot | view alert)85.00 (+15.53%)83.03 (102.37%)✅ (view plot)299.00 (-1.80%)315.00 (94.92%)
client_sv2_setup_connection✅ (view plot)4,659.00 (-0.82%)4,764.77 (97.78%)✅ (view plot)1,502.00 (+0.04%)1,515.82 (99.09%)✅ (view plot)2,274.00 (-0.13%)2,300.05 (98.87%)🚨 (view plot | view alert)15.00 (+63.31%)13.96 (107.42%)✅ (view plot)66.00 (-2.73%)69.68 (94.72%)
client_sv2_setup_connection_serialize✅ (view plot)15,946.00 (-1.92%)16,505.53 (96.61%)✅ (view plot)5,963.00 (+0.01%)5,976.82 (99.77%)✅ (view plot)8,661.00 (+0.06%)8,678.62 (99.80%)🚨 (view plot | view alert)50.00 (+11.80%)49.31 (101.39%)✅ (view plot)201.00 (-4.67%)218.06 (92.18%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)35,416.00 (-0.33%)35,747.87 (99.07%)🚨 (view plot | view alert)14,855.00 (+0.29%)14,838.36 (100.11%)🚨 (view plot | view alert)21,811.00 (+0.27%)21,787.85 (100.11%)✅ (view plot)110.00 (+10.24%)113.07 (97.28%)✅ (view plot)373.00 (-1.70%)384.82 (96.93%)

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

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportWed, June 12, 2024 at 14:06:08 UTC
ProjectStratum v2 (SRI)
Branch960/merge
Testbedsv1

🚨 2 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client-sv1-authorize-serialize/client-sv1-authorize-serializeLatency (nanoseconds (ns))🚨 (view plot | view alert)256.68 (+3.38%)255.92 (100.30%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handleLatency (nanoseconds (ns))🚨 (view plot | view alert)794.53 (+6.13%)782.04 (101.60%)

Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client-submit-serialize✅ (view plot)6,552.70 (-5.49%)7,342.07 (89.25%)
client-submit-serialize-deserialize✅ (view plot)7,415.90 (-5.48%)8,324.53 (89.08%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle✅ (view plot)8,092.30 (-3.92%)8,839.50 (91.55%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle✅ (view plot)914.50 (+1.74%)927.17 (98.63%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize✅ (view plot)708.82 (+1.62%)718.71 (98.62%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize🚨 (view plot | view alert)256.68 (+3.38%)255.92 (100.30%)
client-sv1-get-authorize/client-sv1-get-authorize✅ (view plot)160.31 (+1.95%)162.57 (98.61%)
client-sv1-get-submit✅ (view plot)6,271.80 (-6.38%)7,150.44 (87.71%)
client-sv1-get-subscribe/client-sv1-get-subscribe✅ (view plot)290.15 (+4.01%)292.06 (99.35%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle🚨 (view plot | view alert)794.53 (+6.13%)782.04 (101.60%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize✅ (view plot)622.86 (+1.26%)639.33 (97.42%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize✅ (view plot)203.57 (-1.71%)221.61 (91.86%)

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

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportWed, June 12, 2024 at 14:06:19 UTC
ProjectStratum v2 (SRI)
Branch2024-06-07-fix-poolmessage-tryfrom
Testbedsv2
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client_sv2_handle_message_common✅ (view plot)44.85 (+0.63%)45.26 (99.08%)
client_sv2_handle_message_mining✅ (view plot)72.47 (-0.72%)80.94 (89.54%)
client_sv2_mining_message_submit_standard✅ (view plot)14.65 (-0.02%)14.69 (99.71%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)250.37 (-5.25%)284.36 (88.05%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)584.40 (-1.66%)627.99 (93.06%)
client_sv2_open_channel✅ (view plot)160.92 (-2.89%)171.99 (93.56%)
client_sv2_open_channel_serialize✅ (view plot)287.57 (+1.49%)293.16 (98.09%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)383.93 (+1.46%)424.02 (90.54%)
client_sv2_setup_connection✅ (view plot)168.83 (+2.81%)175.06 (96.44%)
client_sv2_setup_connection_serialize✅ (view plot)498.71 (+4.91%)506.21 (98.52%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)956.74 (-1.42%)1,037.78 (92.19%)

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

@jbesraa jbesraa force-pushed the 2024-06-07-fix-poolmessage-tryfrom branch from 6205cd0 to 0d326b5 Compare June 7, 2024 10:48
@jbesraa jbesraa marked this pull request as ready for review June 7, 2024 11:04
@plebhash plebhash requested a review from Fi3 June 7, 2024 17:21
@plebhash
Copy link
Collaborator

plebhash commented Jun 7, 2024

@jbesraa SRI development workflow takes PRs to dev branch, not main

for more details, please check RELEASE.md

@jbesraa jbesraa changed the base branch from main to dev June 7, 2024 17:28
@jbesraa jbesraa changed the base branch from dev to main June 7, 2024 17:29
@jbesraa jbesraa force-pushed the 2024-06-07-fix-poolmessage-tryfrom branch from 0d326b5 to 11e0c4e Compare June 9, 2024 18:05
@jbesraa jbesraa changed the base branch from main to dev June 9, 2024 18:05
@jbesraa
Copy link
Contributor Author

jbesraa commented Jun 9, 2024

ah, my bad. thanks @plebhash

rebased + changed pr base to dev

@plebhash
Copy link
Collaborator

plebhash commented Jun 9, 2024

@jbesraa for some weird reason Github did not trigger CI after you pushed your latest changes.

Could you try to push a dummy commit, then drop it and force-push again?
Or some other simple approach, the goal is just to get Github to trigger CI.

@jbesraa jbesraa force-pushed the 2024-06-07-fix-poolmessage-tryfrom branch from 11e0c4e to ec781fd Compare June 10, 2024 08:15
..to `TryFrom<(u8, &'a mut [u8])> for PoolMessages`
@jbesraa jbesraa force-pushed the 2024-06-07-fix-poolmessage-tryfrom branch from ec781fd to c0348be Compare June 12, 2024 14:01
@plebhash plebhash merged commit f7d8378 into stratum-mining:dev Jun 13, 2024
13 checks passed
@rockcoolsaint
Copy link
Contributor

I approve of this fix as well

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.

TryFrom(u8,&mut[u8]) for PoolMessages is broken
3 participants