-
Notifications
You must be signed in to change notification settings - Fork 141
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 rust toolchain #1335
base: main
Are you sure you want to change the base?
Add rust toolchain #1335
Conversation
|
Branch | 2025-add-rust-toolchain |
Testbed | sv2 |
Click to view all benchmark results
Benchmark | Estimated Cycles | Benchmark Result 1e3 x estimated cycles (Result Δ%) | Upper Boundary 1e3 x estimated cycles (Limit %) | Instructions | Benchmark Result instructions (Result Δ%) | Upper Boundary instructions (Limit %) | L1 Accesses | Benchmark Result accesses (Result Δ%) | Upper Boundary accesses (Limit %) | L2 Accesses | Benchmark Result accesses (Result Δ%) | Upper Boundary accesses (Limit %) | RAM Accesses | Benchmark Result accesses (Result Δ%) | Upper Boundary accesses (Limit %) |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
client_sv2_handle_message_common | 📈 view plot 🚷 view threshold | 2.11 (+0.10%) | 2.23 (94.66%) | 📈 view plot 🚷 view threshold | 470.00 (-0.75%) | 490.74 (95.77%) | 📈 view plot 🚷 view threshold | 734.00 (-0.27%) | 759.43 (96.65%) | 📈 view plot 🚷 view threshold | 3.00 (-40.37%) | 11.79 (25.44%) | 📈 view plot 🚷 view threshold | 39.00 (+1.05%) | 41.63 (93.67%) |
client_sv2_handle_message_mining | 📈 view plot 🚷 view threshold | 8.27 (+0.53%) | 8.40 (98.47%) | 📈 view plot 🚷 view threshold | 2,137.00 | 📈 view plot 🚷 view threshold | 3,158.00 (-0.02%) | 3,167.53 (99.70%) | 📈 view plot 🚷 view threshold | 35.00 (-1.65%) | 41.77 (83.80%) | 📈 view plot 🚷 view threshold | 141.00 (+0.96%) | 144.46 (97.60%) | |
client_sv2_mining_message_submit_standard | 📈 view plot 🚷 view threshold | 6.27 (-0.54%) | 6.45 (97.20%) | 📈 view plot 🚷 view threshold | 1,747.00 (-0.20%) | 1,767.74 (98.83%) | 📈 view plot 🚷 view threshold | 2,551.00 (-0.03%) | 2,575.99 (99.03%) | 📈 view plot 🚷 view threshold | 15.00 (-12.73%) | 24.54 (61.12%) | 📈 view plot 🚷 view threshold | 104.00 (-0.60%) | 108.71 (95.67%) |
client_sv2_mining_message_submit_standard_serialize | 📈 view plot 🚷 view threshold | 14.73 (+0.06%) | 14.93 (98.67%) | 📈 view plot 🚷 view threshold | 4,691.00 (-0.08%) | 4,711.74 (99.56%) | 📈 view plot 🚷 view threshold | 6,748.00 (-0.12%) | 6,786.79 (99.43%) | 📈 view plot 🚷 view threshold | 50.00 (+10.00%) | 62.34 (80.21%) | 📈 view plot 🚷 view threshold | 221.00 (-0.07%) | 226.11 (97.74%) |
client_sv2_mining_message_submit_standard_serialize_deserialize | 📈 view plot 🚷 view threshold | 27.77 (+0.61%) | 28.05 (99.00%) | 📈 view plot 🚷 view threshold | 10,642.00 (+0.34%) | 10,695.81 (99.50%) | 📈 view plot 🚷 view threshold | 15,505.00 (+0.43%) | 15,589.49 (99.46%) | 📈 view plot 🚷 view threshold | 86.00 (+2.87%) | 98.71 (87.12%) | 📈 view plot 🚷 view threshold | 338.00 (+0.76%) | 342.99 (98.54%) |
client_sv2_open_channel | 📈 view plot 🚷 view threshold | 4.40 (+0.07%) | 4.57 (96.29%) | 📈 view plot 🚷 view threshold | 1,458.00 (-0.24%) | 1,478.74 (98.60%) | 📈 view plot 🚷 view threshold | 2,157.00 (-0.17%) | 2,184.95 (98.72%) | 📈 view plot 🚷 view threshold | 8.00 (-1.82%) | 13.87 (57.70%) | 📈 view plot 🚷 view threshold | 63.00 (+0.34%) | 67.47 (93.38%) |
client_sv2_open_channel_serialize | 📈 view plot 🚷 view threshold | 13.98 (-0.25%) | 14.20 (98.50%) | 📈 view plot 🚷 view threshold | 5,061.00 (-0.07%) | 5,081.74 (99.59%) | 📈 view plot 🚷 view threshold | 7,323.00 (-0.04%) | 7,352.88 (99.59%) | 📈 view plot 🚷 view threshold | 37.00 (+1.54%) | 47.88 (77.27%) | 📈 view plot 🚷 view threshold | 185.00 (-0.53%) | 190.78 (96.97%) |
client_sv2_open_channel_serialize_deserialize | 📈 view plot 🚷 view threshold | 22.87 (+0.74%) | 23.05 (99.24%) | 📈 view plot 🚷 view threshold | 8,037.00 (+0.06%) | 8,057.09 (99.75%) | 📈 view plot 🚷 view threshold | 11,689.00 (+0.04%) | 11,713.96 (99.79%) | 📈 view plot 🚷 view threshold | 80.00 (+5.74%) | 89.45 (89.44%) | 📈 view plot 🚷 view threshold | 308.00 (+1.34%) | 312.16 (98.67%) |
client_sv2_setup_connection | 📈 view plot 🚷 view threshold | 4.66 (-0.58%) | 4.79 (97.35%) | 📈 view plot 🚷 view threshold | 1,499.00 (-0.24%) | 1,519.74 (98.64%) | 📈 view plot 🚷 view threshold | 2,277.00 (-0.07%) | 2,301.29 (98.94%) | 📈 view plot 🚷 view threshold | 8.00 (-15.02%) | 15.35 (52.11%) | 📈 view plot 🚷 view threshold | 67.00 (-0.79%) | 70.06 (95.64%) |
client_sv2_setup_connection_serialize | 📈 view plot 🚷 view threshold | 16.17 (+0.10%) | 16.32 (99.08%) | 📈 view plot 🚷 view threshold | 5,960.00 (-0.06%) | 5,980.74 (99.65%) | 📈 view plot 🚷 view threshold | 8,654.00 (-0.12%) | 8,692.69 (99.55%) | 📈 view plot 🚷 view threshold | 47.00 (+16.32%) | 55.44 (84.77%) | 📈 view plot 🚷 view threshold | 208.00 (-0.09%) | 212.02 (98.10%) |
client_sv2_setup_connection_serialize_deserialize | 📈 view plot 🚷 view threshold | 35.76 (+0.45%) | 35.94 (99.49%) | 📈 view plot 🚷 view threshold | 14,885.00 (+0.12%) | 14,917.82 (99.78%) | 📈 view plot 🚷 view threshold | 21,869.00 (+0.12%) | 21,917.31 (99.78%) | 📈 view plot 🚷 view threshold | 104.00 (+10.55%) | 118.59 (87.70%) | 📈 view plot 🚷 view threshold | 382.00 (+0.64%) | 385.63 (99.06%) |
|
Branch | 2025-add-rust-toolchain |
Testbed | sv1 |
Click to view all benchmark results
Benchmark | Estimated Cycles | Benchmark Result 1e3 x estimated cycles (Result Δ%) | Upper Boundary 1e3 x estimated cycles (Limit %) | Instructions | Benchmark Result 1e3 x instructions (Result Δ%) | Upper Boundary 1e3 x instructions (Limit %) | L1 Accesses | Benchmark Result 1e3 x accesses (Result Δ%) | Upper Boundary 1e3 x accesses (Limit %) | L2 Accesses | Benchmark Result accesses (Result Δ%) | Upper Boundary accesses (Limit %) | RAM Accesses | Benchmark Result accesses (Result Δ%) | Upper Boundary accesses (Limit %) |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
get_authorize | 📈 view plot 🚷 view threshold | 8.41 (-0.47%) | 8.67 (97.04%) | 📈 view plot 🚷 view threshold | 3.66 (-1.69%) | 3.86 (94.87%) | 📈 view plot 🚷 view threshold | 5.11 (-2.05%) | 5.45 (93.82%) | 📈 view plot 🚷 view threshold | 10.00 (+19.29%) | 16.07 (62.21%) | 📈 view plot 🚷 view threshold | 93.00 (+1.87%) | 96.61 (96.26%) |
get_submit | 📈 view plot 🚷 view threshold | 95.35 (-0.01%) | 95.61 (99.72%) | 📈 view plot 🚷 view threshold | 59.26 (-0.24%) | 59.71 (99.26%) | 📈 view plot 🚷 view threshold | 85.08 (-0.28%) | 85.82 (99.14%) | 📈 view plot 🚷 view threshold | 45.00 (+1.05%) | 59.95 (75.06%) | 📈 view plot 🚷 view threshold | 287.00 (+2.28%) | 291.43 (98.48%) |
get_subscribe | 📈 view plot 🚷 view threshold | 7.92 (-1.01%) | 8.23 (96.17%) | 📈 view plot 🚷 view threshold | 2.76 (-1.98%) | 2.94 (93.72%) | 📈 view plot 🚷 view threshold | 3.83 (-2.31%) | 4.14 (92.57%) | 📈 view plot 🚷 view threshold | 11.00 (-11.50%) | 20.57 (53.48%) | 📈 view plot 🚷 view threshold | 115.00 (+0.42%) | 117.87 (97.57%) |
serialize_authorize | 📈 view plot 🚷 view threshold | 12.20 (-0.51%) | 12.50 (97.54%) | 📈 view plot 🚷 view threshold | 5.24 (-1.12%) | 5.43 (96.58%) | 📈 view plot 🚷 view threshold | 7.28 (-1.37%) | 7.60 (95.78%) | 📈 view plot 🚷 view threshold | 10.00 (-1.23%) | 18.68 (53.54%) | 📈 view plot 🚷 view threshold | 139.00 (+0.80%) | 142.96 (97.23%) |
serialize_deserialize_authorize | 📈 view plot 🚷 view threshold | 24.55 (-0.65%) | 25.18 (97.49%) | 📈 view plot 🚷 view threshold | 9.79 (-0.73%) | 10.01 (97.77%) | 📈 view plot 🚷 view threshold | 13.79 (-0.85%) | 14.17 (97.32%) | 📈 view plot 🚷 view threshold | 31.00 (-13.70%) | 45.99 (67.40%) | 📈 view plot 🚷 view threshold | 303.00 (-0.17%) | 313.27 (96.72%) |
serialize_deserialize_handle_authorize | 📈 view plot 🚷 view threshold | 30.18 (-0.48%) | 30.72 (98.23%) | 📈 view plot 🚷 view threshold | 11.99 (-0.52%) | 12.18 (98.39%) | 📈 view plot 🚷 view threshold | 16.96 (-0.62%) | 17.29 (98.05%) | 📈 view plot 🚷 view threshold | 55.00 (-1.52%) | 67.57 (81.39%) | 📈 view plot 🚷 view threshold | 370.00 (-0.27%) | 379.15 (97.59%) |
serialize_deserialize_handle_submit | 📈 view plot 🚷 view threshold | 126.42 (-0.03%) | 126.78 (99.72%) | 📈 view plot 🚷 view threshold | 73.12 (-0.18%) | 73.53 (99.44%) | 📈 view plot 🚷 view threshold | 104.76 (-0.23%) | 105.50 (99.30%) | 📈 view plot 🚷 view threshold | 110.00 (+3.30%) | 125.59 (87.58%) | 📈 view plot 🚷 view threshold | 603.00 (+0.90%) | 609.82 (98.88%) |
serialize_deserialize_handle_subscribe | 📈 view plot 🚷 view threshold | 27.78 (-0.47%) | 28.39 (97.88%) | 📈 view plot 🚷 view threshold | 9.58 (-0.57%) | 9.76 (98.13%) | 📈 view plot 🚷 view threshold | 13.52 (-0.69%) | 13.84 (97.73%) | 📈 view plot 🚷 view threshold | 66.00 (+2.20%) | 78.05 (84.57%) | 📈 view plot 🚷 view threshold | 398.00 (-0.32%) | 409.61 (97.17%) |
serialize_deserialize_submit | 📈 view plot 🚷 view threshold | 115.16 (-0.07%) | 115.71 (99.53%) | 📈 view plot 🚷 view threshold | 67.89 (-0.24%) | 68.42 (99.23%) | 📈 view plot 🚷 view threshold | 97.36 (-0.30%) | 98.28 (99.06%) | 📈 view plot 🚷 view threshold | 67.00 (+2.82%) | 86.97 (77.04%) | 📈 view plot 🚷 view threshold | 499.00 (+1.17%) | 504.13 (98.98%) |
serialize_deserialize_subscribe | 📈 view plot 🚷 view threshold | 23.16 (-0.73%) | 23.82 (97.22%) | 📈 view plot 🚷 view threshold | 8.13 (-0.71%) | 8.32 (97.75%) | 📈 view plot 🚷 view threshold | 11.43 (-0.81%) | 11.75 (97.32%) | 📈 view plot 🚷 view threshold | 35.00 (-9.95%) | 50.88 (68.79%) | 📈 view plot 🚷 view threshold | 330.00 (-0.49%) | 342.25 (96.42%) |
serialize_submit | 📈 view plot 🚷 view threshold | 99.80 (+0.01%) | 100.09 (99.71%) | 📈 view plot 🚷 view threshold | 61.33 (-0.21%) | 61.73 (99.34%) | 📈 view plot 🚷 view threshold | 87.93 (-0.26%) | 88.64 (99.20%) | 📈 view plot 🚷 view threshold | 49.00 (+2.27%) | 66.47 (73.71%) | 📈 view plot 🚷 view threshold | 332.00 (+2.06%) | 337.03 (98.51%) |
serialize_subscribe | 📈 view plot 🚷 view threshold | 11.40 (+0.03%) | 11.60 (98.33%) | 📈 view plot 🚷 view threshold | 4.11 (-1.25%) | 4.28 (95.98%) | 📈 view plot 🚷 view threshold | 5.69 (-1.58%) | 6.00 (94.91%) | 📈 view plot 🚷 view threshold | 15.00 (+8.78%) | 23.80 (63.03%) | 📈 view plot 🚷 view threshold | 161.00 (+1.60%) | 164.28 (98.00%) |
|
Branch | 2025-add-rust-toolchain |
Testbed | sv1 |
Click to view all benchmark results
Benchmark | Latency | Benchmark Result nanoseconds (ns) (Result Δ%) | Upper Boundary nanoseconds (ns) (Limit %) |
---|---|---|---|
client-submit-serialize | 📈 view plot 🚷 view threshold | 6,512.30 (-0.88%) | 6,939.11 (93.85%) |
client-submit-serialize-deserialize | 📈 view plot 🚷 view threshold | 7,458.70 (+0.50%) | 7,874.14 (94.72%) |
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle | 📈 view plot 🚷 view threshold | 8,040.10 (-0.89%) | 9,411.79 (85.43%) |
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle | 📈 view plot 🚷 view threshold | 849.89 (-2.17%) | 946.54 (89.79%) |
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize | 📈 view plot 🚷 view threshold | 666.50 (-1.20%) | 717.71 (92.86%) |
client-sv1-authorize-serialize/client-sv1-authorize-serialize | 📈 view plot 🚷 view threshold | 244.32 (-1.92%) | 266.31 (91.74%) |
client-sv1-get-authorize/client-sv1-get-authorize | 📈 view plot 🚷 view threshold | 161.32 (+2.19%) | 167.77 (96.15%) |
client-sv1-get-submit | 📈 view plot 🚷 view threshold | 6,341.30 (-0.24%) | 6,804.74 (93.19%) |
client-sv1-get-subscribe/client-sv1-get-subscribe | 📈 view plot 🚷 view threshold | 280.07 (-1.20%) | 327.92 (85.41%) |
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle | 📈 view plot 🚷 view threshold | 715.95 (-1.62%) | 780.48 (91.73%) |
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize | 📈 view plot 🚷 view threshold | 585.17 (-1.19%) | 626.13 (93.46%) |
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize | 📈 view plot 🚷 view threshold | 205.49 (-0.74%) | 227.22 (90.44%) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1335 +/- ##
==========================================
+ Coverage 0.00% 19.29% +19.29%
==========================================
Files 18 164 +146
Lines 982 10852 +9870
==========================================
+ Hits 0 2094 +2094
- Misses 982 8758 +7776
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
nack, our formatting works with nightly and always was. Also, you didnt provide any example where your statement is correct, your pr was not formatted with nightly and thats why you had so many changes. We had this discussion a couple of times already with adding/not the rust-toolchain file, not sure why we are back at it again. |
Not quite. While the code is formatted with nightly, the issue lies in the specific version of nightly used. My version, |
The workflow uses always latest nightly https://github.com/stratum-mining/stratum/blob/main/.github/workflows/fmt.yaml |
Not only the formatting but even clippy throws error locally when I run it, because of versioning.
I remember one of the new contributors added these clippy mentioned changes in his PR. |
let's investigate on the need for using |
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.
I made myself almost the exact same file in order to have my shell.nix synced with toolchain version
Is this still needed? I haven't followed the discussion opened after this. I would say it's not needed and we can close this PR, but I just want to be sure before proceeding. |
Wating for @rrybarczyk , #1333 (comment) |
still big nack from me, I dont see any reason for this. whats described in #1333 happened (maybe) once and I think that was a problem with the authors text editor |
closes: #1333