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

Remove useless converstion after u__::arbitrary(g) #959

Conversation

pythcoiner
Copy link
Contributor

This PR remove some useless convertions of a type into itself.

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportFri, June 7, 2024 at 07:52:44 UTC
ProjectStratum v2 (SRI)
Branchfix-useless-conversion-after-arbitrary
Testbedsv2
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,065.00 (+0.78%)2,126.20 (97.12%)✅ (view plot)473.00 (+0.50%)486.49 (97.23%)✅ (view plot)735.00 (+0.37%)755.56 (97.28%)✅ (view plot)7.00 (+2.20%)10.38 (67.45%)✅ (view plot)37.00 (+0.98%)38.57 (95.94%)
client_sv2_handle_message_mining✅ (view plot)8,215.00 (+0.22%)8,337.34 (98.53%)✅ (view plot)2,137.00 (+0.47%)2,171.53 (98.41%)✅ (view plot)3,160.00 (+0.50%)3,216.48 (98.24%)✅ (view plot)38.00 (-1.32%)43.63 (87.09%)✅ (view plot)139.00 (+0.11%)142.00 (97.89%)
client_sv2_mining_message_submit_standard✅ (view plot)6,250.00 (-0.40%)6,389.21 (97.82%)✅ (view plot)1,750.00 (+0.03%)1,763.31 (99.25%)✅ (view plot)2,555.00 (+0.04%)2,576.24 (99.18%)✅ (view plot)18.00 (+3.58%)22.19 (81.12%)✅ (view plot)103.00 (-0.80%)106.94 (96.32%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)14,727.00 (-0.34%)15,036.05 (97.94%)✅ (view plot)4,694.00 (+0.01%)4,707.31 (99.72%)✅ (view plot)6,757.00 (+0.04%)6,775.59 (99.73%)✅ (view plot)47.00 (-0.32%)51.68 (90.95%)✅ (view plot)221.00 (-0.66%)230.01 (96.08%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)27,432.00 (-0.16%)27,847.44 (98.51%)✅ (view plot)10,545.00 (+0.03%)10,558.67 (99.87%)✅ (view plot)15,342.00 (+0.02%)15,361.14 (99.88%)✅ (view plot)87.00 (+3.97%)89.23 (97.50%)✅ (view plot)333.00 (-0.55%)345.43 (96.40%)
client_sv2_open_channel✅ (view plot)4,531.00 (+0.82%)4,612.61 (98.23%)✅ (view plot)1,461.00 (+0.06%)1,474.58 (99.08%)✅ (view plot)2,151.00 (-0.07%)2,172.97 (98.99%)✅ (view plot)14.00 (+16.30%)15.36 (91.14%)✅ (view plot)66.00 (+1.24%)68.20 (96.78%)
client_sv2_open_channel_serialize✅ (view plot)14,228.00 (+0.05%)14,460.49 (98.39%)✅ (view plot)5,064.00 (+0.02%)5,077.58 (99.73%)✅ (view plot)7,318.00 (+0.00%)7,339.45 (99.71%)✅ (view plot)38.00 (+2.29%)41.51 (91.55%)✅ (view plot)192.00 (+0.03%)198.82 (96.57%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)22,678.00 (+0.15%)23,029.96 (98.47%)✅ (view plot)7,987.00 (+0.05%)8,001.24 (99.82%)✅ (view plot)11,613.00 (-0.00%)11,636.73 (99.80%)✅ (view plot)78.00 (+6.55%)81.48 (95.73%)✅ (view plot)305.00 (+0.11%)315.09 (96.80%)
client_sv2_setup_connection✅ (view plot)4,703.00 (+0.08%)4,765.35 (98.69%)✅ (view plot)1,502.00 (+0.06%)1,515.58 (99.10%)✅ (view plot)2,278.00 (+0.05%)2,300.03 (99.04%)✅ (view plot)9.00 (+0.42%)13.13 (68.52%)✅ (view plot)68.00 (+0.11%)69.60 (97.70%)
client_sv2_setup_connection_serialize✅ (view plot)16,342.00 (+0.43%)16,482.40 (99.15%)✅ (view plot)5,963.00 (+0.01%)5,976.58 (99.77%)✅ (view plot)8,652.00 (-0.03%)8,677.55 (99.71%)✅ (view plot)47.00 (+5.42%)48.83 (96.26%)✅ (view plot)213.00 (+0.81%)217.16 (98.08%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)35,608.00 (+0.20%)35,751.32 (99.60%)✅ (view plot)14,814.00 (+0.03%)14,828.24 (99.90%)✅ (view plot)21,748.00 (-0.01%)21,772.47 (99.89%)✅ (view plot)105.00 (+5.48%)112.56 (93.29%)✅ (view plot)381.00 (+0.33%)384.44 (99.11%)

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

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportFri, June 7, 2024 at 07:52:45 UTC
ProjectStratum v2 (SRI)
Branchfix-useless-conversion-after-arbitrary
Testbedsv1
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,440.00 (+0.08%)8,724.54 (96.74%)✅ (view plot)3,746.00 (+0.15%)3,856.71 (97.13%)✅ (view plot)5,250.00 (+0.10%)5,403.58 (97.16%)✅ (view plot)8.00 (+0.23%)10.43 (76.71%)✅ (view plot)90.00 (+0.04%)93.91 (95.83%)
get_submit✅ (view plot)95,541.00 (-0.02%)96,151.06 (99.37%)✅ (view plot)59,439.00 (-0.05%)59,783.10 (99.42%)✅ (view plot)85,351.00 (-0.06%)85,842.77 (99.43%)✅ (view plot)57.00 (+2.94%)62.50 (91.20%)✅ (view plot)283.00 (+0.32%)287.79 (98.33%)
get_subscribe✅ (view plot)8,007.00 (+0.36%)8,275.48 (96.76%)✅ (view plot)2,841.00 (+0.40%)2,940.93 (96.60%)✅ (view plot)3,967.00 (+0.35%)4,100.82 (96.74%)✅ (view plot)17.00 (+4.20%)19.75 (86.08%)✅ (view plot)113.00 (+0.30%)117.01 (96.57%)
serialize_authorize✅ (view plot)12,197.00 (-0.06%)12,504.04 (97.54%)✅ (view plot)5,317.00 (+0.11%)5,427.71 (97.96%)✅ (view plot)7,412.00 (+0.06%)7,566.90 (97.95%)✅ (view plot)12.00 (+10.58%)13.46 (89.16%)✅ (view plot)135.00 (-0.37%)140.19 (96.30%)
serialize_deserialize_authorize✅ (view plot)24,472.00 (+0.02%)24,706.23 (99.05%)✅ (view plot)9,898.00 (-0.02%)10,027.94 (98.70%)✅ (view plot)13,957.00 (-0.07%)14,153.66 (98.61%)✅ (view plot)38.00 (+3.43%)41.62 (91.30%)✅ (view plot)295.00 (+0.08%)297.48 (99.17%)
serialize_deserialize_handle_authorize✅ (view plot)30,161.00 (+0.06%)30,332.60 (99.43%)✅ (view plot)12,101.00 (+0.05%)12,211.71 (99.09%)✅ (view plot)17,121.00 (+0.02%)17,282.23 (99.07%)✅ (view plot)60.00 (+2.08%)64.76 (92.66%)✅ (view plot)364.00 (+0.07%)366.61 (99.29%)
serialize_deserialize_handle_submit✅ (view plot)126,422.00 (+0.01%)127,040.16 (99.51%)✅ (view plot)73,224.00 (-0.04%)73,625.57 (99.45%)✅ (view plot)104,942.00 (-0.05%)105,519.55 (99.45%)✅ (view plot)124.00 (+2.83%)131.54 (94.26%)✅ (view plot)596.00 (+0.20%)599.25 (99.46%)
serialize_deserialize_handle_subscribe✅ (view plot)27,507.00 (+0.19%)27,603.58 (99.65%)✅ (view plot)9,643.00 (+0.12%)9,742.93 (98.97%)✅ (view plot)13,637.00 (+0.11%)13,776.93 (98.98%)✅ (view plot)65.00 (-1.54%)73.87 (87.99%)✅ (view plot)387.00 (+0.32%)388.58 (99.59%)
serialize_deserialize_submit✅ (view plot)115,015.00 (-0.06%)115,661.92 (99.44%)✅ (view plot)68,001.00 (-0.08%)68,408.16 (99.40%)✅ (view plot)97,555.00 (-0.10%)98,158.47 (99.39%)✅ (view plot)69.00 (-0.85%)75.23 (91.72%)✅ (view plot)489.00 (+0.19%)492.41 (99.31%)
serialize_deserialize_subscribe✅ (view plot)22,900.00 (+0.11%)23,114.32 (99.07%)✅ (view plot)8,195.00 (+0.11%)8,298.75 (98.75%)✅ (view plot)11,540.00 (+0.09%)11,684.43 (98.76%)✅ (view plot)39.00 (-1.31%)44.04 (88.55%)✅ (view plot)319.00 (+0.15%)321.52 (99.22%)
serialize_submit✅ (view plot)99,858.00 (-0.04%)100,479.08 (99.38%)✅ (view plot)61,483.00 (-0.05%)61,832.56 (99.43%)✅ (view plot)88,198.00 (-0.06%)88,696.39 (99.44%)✅ (view plot)57.00 (+1.82%)62.04 (91.88%)✅ (view plot)325.00 (+0.09%)329.26 (98.71%)
serialize_subscribe✅ (view plot)11,336.00 (+0.07%)11,611.03 (97.63%)✅ (view plot)4,188.00 (+0.27%)4,287.93 (97.67%)✅ (view plot)5,826.00 (+0.25%)5,960.15 (97.75%)✅ (view plot)17.00 (+3.49%)19.01 (89.44%)✅ (view plot)155.00 (-0.17%)159.83 (96.98%)

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

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportFri, June 7, 2024 at 07:52:45 UTC
ProjectStratum v2 (SRI)
Branch959/merge
Testbedsv1

🚨 3 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handleLatency (nanoseconds (ns))🚨 (view plot | view alert)1,084.90 (+20.05%)974.84 (111.29%)
client-sv1-get-subscribe/client-sv1-get-subscribeLatency (nanoseconds (ns))🚨 (view plot | view alert)296.78 (+6.33%)293.27 (101.20%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handleLatency (nanoseconds (ns))🚨 (view plot | view alert)861.53 (+14.85%)799.70 (107.73%)

Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client-submit-serialize✅ (view plot)6,992.80 (+0.72%)7,333.99 (95.35%)
client-submit-serialize-deserialize✅ (view plot)8,256.60 (+4.89%)8,351.23 (98.87%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle✅ (view plot)8,626.90 (+2.30%)8,841.13 (97.58%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle🚨 (view plot | view alert)1,084.90 (+20.05%)974.84 (111.29%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize✅ (view plot)682.42 (-2.04%)718.10 (95.03%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize✅ (view plot)247.25 (-0.35%)255.18 (96.89%)
client-sv1-get-authorize/client-sv1-get-authorize✅ (view plot)158.35 (+0.74%)162.50 (97.44%)
client-sv1-get-submit✅ (view plot)6,914.70 (+3.03%)7,141.27 (96.83%)
client-sv1-get-subscribe/client-sv1-get-subscribe🚨 (view plot | view alert)296.78 (+6.33%)293.27 (101.20%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle🚨 (view plot | view alert)861.53 (+14.85%)799.70 (107.73%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize✅ (view plot)603.30 (-1.75%)637.67 (94.61%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize✅ (view plot)217.31 (+4.97%)220.83 (98.41%)

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

Copy link
Contributor

github-actions bot commented Jun 7, 2024

🐰Bencher

ReportFri, June 7, 2024 at 07:52:47 UTC
ProjectStratum v2 (SRI)
Branchfix-useless-conversion-after-arbitrary
Testbedsv2

🚨 2 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client_sv2_mining_message_submit_standardLatency (nanoseconds (ns))🚨 (view plot | view alert)14.72 (+0.47%)14.70 (100.17%)
client_sv2_setup_connection_serialize_deserializeLatency (nanoseconds (ns))🚨 (view plot | view alert)1,069.50 (+9.99%)1,045.84 (102.26%)

Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client_sv2_handle_message_common✅ (view plot)44.68 (+0.27%)45.25 (98.74%)
client_sv2_handle_message_mining✅ (view plot)73.35 (+0.69%)80.44 (91.18%)
client_sv2_mining_message_submit_standard🚨 (view plot | view alert)14.72 (+0.47%)14.70 (100.17%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)262.02 (-0.86%)283.99 (92.26%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)598.93 (+0.78%)628.18 (95.34%)
client_sv2_open_channel✅ (view plot)160.95 (-2.78%)171.37 (93.92%)
client_sv2_open_channel_serialize✅ (view plot)287.39 (+1.40%)293.25 (98.00%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)375.13 (-0.86%)424.38 (88.40%)
client_sv2_setup_connection✅ (view plot)165.12 (+0.56%)175.04 (94.33%)
client_sv2_setup_connection_serialize✅ (view plot)481.48 (+1.31%)505.56 (95.24%)
client_sv2_setup_connection_serialize_deserialize🚨 (view plot | view alert)1,069.50 (+9.99%)1,045.84 (102.26%)

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

@plebhash
Copy link
Collaborator

plebhash commented Jun 7, 2024

thanks for this!

contributions removing technical debt on SRI are very welcome!

@plebhash plebhash merged commit 3891bc8 into stratum-mining:dev Jun 7, 2024
13 checks passed
@pythcoiner pythcoiner deleted the fix-useless-conversion-after-arbitrary branch June 8, 2024 04:57
@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