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

Improve cpu miner #886

Merged
merged 8 commits into from
May 3, 2024
Merged

Improve cpu miner #886

merged 8 commits into from
May 3, 2024

Conversation

Fi3
Copy link
Collaborator

@Fi3 Fi3 commented May 3, 2024

No description provided.

@Fi3 Fi3 merged commit 951e14e into stratum-mining:main May 3, 2024
12 of 13 checks passed
Copy link
Contributor

github-actions bot commented May 3, 2024

🐰Bencher

ReportFri, May 3, 2024 at 09:55:46 UTC
ProjectStratum v2 (SRI)
Branch886/merge
Testbedsv1
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client-submit-serialize✅ (view plot)7,100.10 (+2.64%)7,270.76 (97.65%)
client-submit-serialize-deserialize✅ (view plot)7,953.90 (+1.60%)8,241.86 (96.51%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle✅ (view plot)8,518.00 (+1.28%)8,816.15 (96.62%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle✅ (view plot)900.10 (+0.17%)928.53 (96.94%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize✅ (view plot)695.54 (-0.10%)715.70 (97.18%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize✅ (view plot)250.27 (+1.06%)253.97 (98.54%)
client-sv1-get-authorize/client-sv1-get-authorize✅ (view plot)158.57 (+1.06%)160.35 (98.89%)
client-sv1-get-submit✅ (view plot)6,840.80 (+2.45%)7,040.29 (97.17%)
client-sv1-get-subscribe/client-sv1-get-subscribe✅ (view plot)273.12 (-2.05%)292.20 (93.47%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle✅ (view plot)757.00 (+1.17%)778.72 (97.21%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize✅ (view plot)615.22 (-0.03%)639.05 (96.27%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize✅ (view plot)212.55 (+2.51%)221.23 (96.08%)

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

Copy link
Contributor

github-actions bot commented May 3, 2024

🐰Bencher

ReportFri, May 3, 2024 at 09:55:46 UTC
ProjectStratum v2 (SRI)
BranchImproveCpuMiner
Testbedsv2
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client_sv2_handle_message_common✅ (view plot)44.45 (-0.13%)45.19 (98.35%)
client_sv2_handle_message_mining✅ (view plot)72.61 (+0.64%)80.42 (90.29%)
client_sv2_mining_message_submit_standard✅ (view plot)14.64 (-0.11%)14.69 (99.65%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)270.15 (+1.64%)287.13 (94.09%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)620.30 (+4.40%)625.82 (99.12%)
client_sv2_open_channel✅ (view plot)163.09 (-1.50%)171.80 (94.93%)
client_sv2_open_channel_serialize✅ (view plot)285.32 (+0.52%)294.10 (97.01%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)375.59 (-0.20%)405.56 (92.61%)
client_sv2_setup_connection✅ (view plot)159.21 (-2.89%)176.10 (90.41%)
client_sv2_setup_connection_serialize✅ (view plot)469.04 (-0.82%)498.87 (94.02%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)990.06 (+1.40%)1,047.90 (94.48%)

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

Copy link
Contributor

github-actions bot commented May 3, 2024

🐰Bencher

ReportFri, May 3, 2024 at 09:55:47 UTC
ProjectStratum v2 (SRI)
BranchImproveCpuMiner
Testbedsv2

🚨 1 ALERT: Threshold Boundary Limit exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client_sv2_handle_message_commonL2 Accesses (accesses)🚨 (view plot | view alert)11.00 (+58.84%)10.91 (100.82%)

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.67%)2,134.00 (97.52%)✅ (view plot)473.00 (+0.64%)488.09 (96.91%)✅ (view plot)731.00 (-0.03%)757.92 (96.45%)🚨 (view plot | view alert)11.00 (+58.84%)10.91 (100.82%)✅ (view plot)37.00 (+1.09%)38.77 (95.44%)
client_sv2_handle_message_mining✅ (view plot)8,249.00 (+0.71%)8,350.60 (98.78%)✅ (view plot)2,137.00 (+0.62%)2,173.57 (98.32%)✅ (view plot)3,159.00 (+0.64%)3,219.06 (98.13%)✅ (view plot)38.00 (-3.00%)43.65 (87.05%)✅ (view plot)140.00 (+0.90%)142.36 (98.34%)
client_sv2_mining_message_submit_standard✅ (view plot)6,284.00 (-0.03%)6,408.73 (98.05%)✅ (view plot)1,750.00 (+0.03%)1,765.42 (99.13%)✅ (view plot)2,554.00 (+0.03%)2,578.88 (99.04%)✅ (view plot)18.00 (+2.27%)22.91 (78.58%)✅ (view plot)104.00 (-0.12%)107.46 (96.78%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)14,867.00 (+0.68%)15,061.06 (98.71%)✅ (view plot)4,694.00 (+0.01%)4,709.42 (99.67%)✅ (view plot)6,752.00 (-0.04%)6,778.82 (99.60%)✅ (view plot)48.00 (+1.32%)52.44 (91.53%)✅ (view plot)225.00 (+1.28%)230.70 (97.53%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)27,632.00 (+0.62%)27,882.47 (99.10%)✅ (view plot)10,545.00 (+0.04%)10,559.81 (99.86%)✅ (view plot)15,337.00 (-0.01%)15,363.33 (99.83%)✅ (view plot)86.00 (+2.75%)89.75 (95.82%)✅ (view plot)339.00 (+1.37%)346.42 (97.86%)
client_sv2_open_channel✅ (view plot)4,531.00 (+0.99%)4,618.15 (98.11%)✅ (view plot)1,461.00 (+0.07%)1,476.65 (98.94%)✅ (view plot)2,151.00 (-0.08%)2,176.40 (98.83%)✅ (view plot)14.00 (+19.40%)15.25 (91.81%)✅ (view plot)66.00 (+1.54%)68.36 (96.55%)
client_sv2_open_channel_serialize✅ (view plot)14,338.00 (+0.91%)14,478.95 (99.03%)✅ (view plot)5,064.00 (+0.02%)5,079.65 (99.69%)✅ (view plot)7,313.00 (-0.07%)7,343.13 (99.59%)✅ (view plot)40.00 (+8.25%)41.60 (96.14%)✅ (view plot)195.00 (+1.77%)199.39 (97.80%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)22,844.00 (+0.98%)23,059.55 (99.07%)✅ (view plot)7,987.00 (+0.06%)8,002.34 (99.81%)✅ (view plot)11,609.00 (-0.03%)11,640.27 (99.73%)✅ (view plot)77.00 (+6.46%)80.52 (95.63%)✅ (view plot)310.00 (+1.90%)315.99 (98.10%)
client_sv2_setup_connection✅ (view plot)4,703.00 (+0.03%)4,775.56 (98.48%)✅ (view plot)1,502.00 (+0.07%)1,517.65 (98.97%)✅ (view plot)2,278.00 (+0.08%)2,302.95 (98.92%)✅ (view plot)9.00 (-2.44%)13.84 (65.01%)✅ (view plot)68.00 (+0.04%)69.84 (97.36%)
client_sv2_setup_connection_serialize✅ (view plot)16,338.00 (+0.57%)16,457.84 (99.27%)✅ (view plot)5,963.00 (+0.02%)5,978.65 (99.74%)✅ (view plot)8,653.00 (-0.03%)8,681.74 (99.67%)✅ (view plot)46.00 (+4.25%)48.41 (95.03%)✅ (view plot)213.00 (+1.16%)216.56 (98.36%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)35,650.00 (+0.37%)35,752.93 (99.71%)✅ (view plot)14,814.00 (+0.03%)14,829.34 (99.90%)✅ (view plot)21,745.00 (-0.02%)21,776.02 (99.86%)✅ (view plot)107.00 (+8.74%)112.52 (95.10%)✅ (view plot)382.00 (+0.69%)384.53 (99.34%)

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

Copy link
Contributor

github-actions bot commented May 3, 2024

🐰Bencher

ReportFri, May 3, 2024 at 09:55:50 UTC
ProjectStratum v2 (SRI)
BranchImproveCpuMiner
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,444.00 (+0.38%)8,738.85 (96.63%)✅ (view plot)3,746.00 (+0.34%)3,865.45 (96.91%)✅ (view plot)5,249.00 (+0.28%)5,413.14 (96.97%)✅ (view plot)9.00 (+12.85%)10.51 (85.63%)✅ (view plot)90.00 (+0.39%)94.02 (95.73%)
get_submit✅ (view plot)95,541.00 (-0.00%)96,234.93 (99.28%)✅ (view plot)59,439.00 (-0.04%)59,827.23 (99.35%)✅ (view plot)85,351.00 (-0.05%)85,900.09 (99.36%)✅ (view plot)57.00 (+4.16%)62.52 (91.17%)✅ (view plot)283.00 (+0.34%)288.48 (98.10%)
get_subscribe✅ (view plot)8,007.00 (+0.59%)8,298.45 (96.49%)✅ (view plot)2,841.00 (+0.59%)2,952.87 (96.21%)✅ (view plot)3,967.00 (+0.52%)4,116.63 (96.37%)✅ (view plot)17.00 (+6.92%)19.42 (87.55%)✅ (view plot)113.00 (+0.53%)117.29 (96.34%)
serialize_authorize✅ (view plot)12,197.00 (+0.17%)12,495.54 (97.61%)✅ (view plot)5,317.00 (+0.24%)5,436.45 (97.80%)✅ (view plot)7,412.00 (+0.20%)7,577.13 (97.82%)✅ (view plot)12.00 (+10.34%)13.61 (88.16%)✅ (view plot)135.00 (0.00%)139.63 (96.68%)
serialize_deserialize_authorize✅ (view plot)24,438.00 (-0.04%)24,704.38 (98.92%)✅ (view plot)9,898.00 (+0.08%)10,031.30 (98.67%)✅ (view plot)13,958.00 (+0.05%)14,153.77 (98.62%)✅ (view plot)38.00 (+3.05%)42.19 (90.07%)✅ (view plot)294.00 (-0.20%)297.48 (98.83%)
serialize_deserialize_handle_authorize✅ (view plot)30,153.00 (+0.08%)30,335.91 (99.40%)✅ (view plot)12,101.00 (+0.11%)12,220.45 (99.02%)✅ (view plot)17,123.00 (+0.09%)17,294.21 (99.01%)✅ (view plot)58.00 (+0.04%)63.48 (91.36%)✅ (view plot)364.00 (+0.08%)366.65 (99.28%)
serialize_deserialize_handle_submit✅ (view plot)126,396.00 (-0.00%)127,129.04 (99.42%)✅ (view plot)73,224.00 (-0.03%)73,678.90 (99.38%)✅ (view plot)104,941.00 (-0.04%)105,590.83 (99.38%)✅ (view plot)126.00 (+5.73%)130.36 (96.66%)✅ (view plot)595.00 (+0.01%)599.65 (99.22%)
serialize_deserialize_handle_subscribe✅ (view plot)27,481.00 (+0.12%)27,606.53 (99.55%)✅ (view plot)9,643.00 (+0.17%)9,754.87 (98.85%)✅ (view plot)13,636.00 (+0.15%)13,794.86 (98.85%)✅ (view plot)67.00 (+3.55%)70.31 (95.30%)✅ (view plot)386.00 (+0.02%)388.46 (99.37%)
serialize_deserialize_submit✅ (view plot)114,981.00 (-0.06%)115,707.78 (99.37%)✅ (view plot)68,001.00 (-0.07%)68,438.43 (99.36%)✅ (view plot)97,556.00 (-0.08%)98,190.21 (99.35%)✅ (view plot)69.00 (+0.36%)73.84 (93.45%)✅ (view plot)488.00 (-0.01%)492.87 (99.01%)
serialize_deserialize_subscribe✅ (view plot)22,866.00 (+0.04%)23,122.62 (98.89%)✅ (view plot)8,195.00 (+0.19%)8,309.62 (98.62%)✅ (view plot)11,541.00 (+0.18%)11,698.63 (98.65%)✅ (view plot)39.00 (-0.76%)44.24 (88.15%)✅ (view plot)318.00 (-0.09%)321.43 (98.93%)
serialize_submit✅ (view plot)99,858.00 (-0.02%)100,545.73 (99.32%)✅ (view plot)61,483.00 (-0.04%)61,877.85 (99.36%)✅ (view plot)88,198.00 (-0.05%)88,756.18 (99.37%)✅ (view plot)57.00 (+3.17%)61.14 (93.23%)✅ (view plot)325.00 (+0.16%)329.61 (98.60%)
serialize_subscribe✅ (view plot)11,336.00 (+0.28%)11,613.34 (97.61%)✅ (view plot)4,188.00 (+0.40%)4,299.87 (97.40%)✅ (view plot)5,826.00 (+0.37%)5,976.35 (97.48%)✅ (view plot)17.00 (+5.59%)18.65 (91.15%)✅ (view plot)155.00 (+0.11%)159.53 (97.16%)

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

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