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 UT for JDS module #1017

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

Shourya742
Copy link
Contributor

Added UT for few of the files in the JDS module.

  1. /roles/jd-server/src/lib/mod.rs - coverage : 85%
  2. /roles/jd-server/src/lib/status.rs - coverage: 92%

Copy link
Contributor

github-actions bot commented Jun 27, 2024

🐰Bencher

ReportThu, June 27, 2024 at 13:00:10 UTC
ProjectStratum v2 (SRI)
Branchfeat/jds-todo
Testbedsv1

🚨 1 ALERT: Threshold Boundary Limit exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
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,504.00 (+0.79%)8,724.64 (97.47%)✅ (view plot)3,746.00 (+0.15%)3,854.74 (97.18%)✅ (view plot)5,249.00 (+0.08%)5,400.71 (97.19%)✅ (view plot)7.00 (-11.71%)10.37 (67.47%)✅ (view plot)92.00 (+2.14%)94.06 (97.81%)
get_submit✅ (view plot)95,475.00 (-0.08%)96,137.00 (99.31%)✅ (view plot)59,439.00 (-0.05%)59,776.31 (99.44%)✅ (view plot)85,360.00 (-0.05%)85,833.32 (99.45%)✅ (view plot)49.00 (-10.91%)62.60 (78.28%)✅ (view plot)282.00 (-0.03%)287.66 (98.03%)
get_subscribe✅ (view plot)7,957.00 (-0.25%)8,268.26 (96.24%)✅ (view plot)2,841.00 (+0.39%)2,939.32 (96.65%)✅ (view plot)3,972.00 (+0.45%)4,099.02 (96.90%)✅ (view plot)13.00 (-19.38%)19.83 (65.54%)✅ (view plot)112.00 (-0.55%)116.90 (95.81%)
serialize_authorize✅ (view plot)12,257.00 (+0.41%)12,502.37 (98.04%)✅ (view plot)5,317.00 (+0.10%)5,425.74 (98.00%)✅ (view plot)7,412.00 (+0.06%)7,564.06 (97.99%)✅ (view plot)10.00 (-7.28%)13.35 (74.89%)✅ (view plot)137.00 (+1.04%)140.24 (97.69%)
serialize_deserialize_authorize✅ (view plot)24,554.00 (+0.34%)24,709.87 (99.37%)✅ (view plot)9,898.00 (-0.02%)10,025.45 (98.73%)✅ (view plot)13,959.00 (-0.05%)14,149.90 (98.65%)✅ (view plot)33.00 (-9.63%)41.61 (79.31%)✅ (view plot)298.00 (+1.04%)298.00 (100.00%)
serialize_deserialize_handle_authorize✅ (view plot)30,297.00 (+0.49%)30,350.83 (99.82%)✅ (view plot)12,101.00 (+0.05%)12,209.74 (99.11%)✅ (view plot)17,117.00 (-0.00%)17,279.02 (99.06%)✅ (view plot)60.00 (+2.00%)64.71 (92.73%)🚨 (view plot | view alert)368.00 (+1.11%)367.43 (100.16%)
serialize_deserialize_handle_submit✅ (view plot)126,406.00 (-0.00%)127,027.77 (99.51%)✅ (view plot)73,224.00 (-0.04%)73,617.68 (99.47%)✅ (view plot)104,946.00 (-0.04%)105,508.29 (99.47%)✅ (view plot)120.00 (-0.41%)131.20 (91.46%)✅ (view plot)596.00 (+0.19%)599.23 (99.46%)
serialize_deserialize_handle_subscribe✅ (view plot)27,495.00 (+0.14%)27,602.54 (99.61%)✅ (view plot)9,643.00 (+0.11%)9,741.32 (98.99%)✅ (view plot)13,640.00 (+0.12%)13,774.87 (99.02%)✅ (view plot)62.00 (-5.81%)73.75 (84.06%)✅ (view plot)387.00 (+0.31%)388.61 (99.59%)
serialize_deserialize_submit✅ (view plot)114,999.00 (-0.07%)115,648.79 (99.44%)✅ (view plot)68,001.00 (-0.08%)68,400.22 (99.42%)✅ (view plot)97,559.00 (-0.09%)98,146.90 (99.40%)✅ (view plot)65.00 (-6.28%)75.30 (86.32%)✅ (view plot)489.00 (+0.18%)492.37 (99.32%)
serialize_deserialize_subscribe✅ (view plot)22,888.00 (+0.06%)23,110.03 (99.04%)✅ (view plot)8,195.00 (+0.11%)8,297.00 (98.77%)✅ (view plot)11,543.00 (+0.12%)11,682.16 (98.81%)✅ (view plot)36.00 (-8.49%)44.08 (81.67%)✅ (view plot)319.00 (+0.15%)321.48 (99.23%)
serialize_submit✅ (view plot)99,792.00 (-0.10%)100,465.23 (99.33%)✅ (view plot)61,483.00 (-0.05%)61,825.66 (99.45%)✅ (view plot)88,207.00 (-0.05%)88,686.81 (99.46%)✅ (view plot)49.00 (-11.85%)62.38 (78.55%)✅ (view plot)324.00 (-0.20%)329.15 (98.44%)
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

Copy link
Contributor

github-actions bot commented Jun 27, 2024

🐰Bencher

ReportThu, June 27, 2024 at 13:00:10 UTC
ProjectStratum v2 (SRI)
Branch1017/merge
Testbedsv1
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client-submit-serialize✅ (view plot)6,548.30 (-5.15%)7,372.90 (88.82%)
client-submit-serialize-deserialize✅ (view plot)7,454.00 (-4.76%)8,337.54 (89.40%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle✅ (view plot)8,119.90 (-3.27%)8,856.44 (91.68%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle✅ (view plot)891.88 (-0.72%)925.95 (96.32%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize✅ (view plot)702.09 (+0.74%)717.45 (97.86%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize✅ (view plot)246.20 (-0.71%)255.02 (96.54%)
client-sv1-get-authorize/client-sv1-get-authorize✅ (view plot)157.15 (-0.00%)162.31 (96.82%)
client-sv1-get-submit✅ (view plot)6,340.00 (-4.95%)7,157.25 (88.58%)
client-sv1-get-subscribe/client-sv1-get-subscribe✅ (view plot)276.72 (-0.80%)292.03 (94.76%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle✅ (view plot)777.22 (+3.79%)780.40 (99.59%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize✅ (view plot)609.99 (-0.67%)636.89 (95.78%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize✅ (view plot)205.70 (-0.38%)219.66 (93.64%)

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

Copy link
Contributor

github-actions bot commented Jun 27, 2024

🐰Bencher

ReportThu, June 27, 2024 at 13:00:05 UTC
ProjectStratum v2 (SRI)
Branchfeat/jds-todo
Testbedsv2
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Upper Boundary
nanoseconds (ns) | (%)
client_sv2_handle_message_common✅ (view plot)44.88 (+0.69%)45.26 (99.15%)
client_sv2_handle_message_mining✅ (view plot)74.65 (+2.32%)80.46 (92.78%)
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)262.27 (-0.80%)283.77 (92.42%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)581.41 (-2.10%)627.35 (92.68%)
client_sv2_open_channel✅ (view plot)166.17 (+0.37%)171.20 (97.06%)
client_sv2_open_channel_serialize✅ (view plot)279.73 (-1.19%)292.92 (95.50%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)373.12 (-1.45%)423.94 (88.01%)
client_sv2_setup_connection✅ (view plot)164.00 (-0.23%)175.23 (93.59%)
client_sv2_setup_connection_serialize✅ (view plot)455.86 (-3.98%)505.67 (90.15%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)992.50 (+2.14%)1,039.07 (95.52%)

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

Copy link
Contributor

github-actions bot commented Jun 27, 2024

🐰Bencher

ReportThu, June 27, 2024 at 13:00:04 UTC
ProjectStratum v2 (SRI)
Branchfeat/jds-todo
Testbedsv2

🚨 10 ALERTS: Threshold Boundary Limits exceeded!
BenchmarkMeasure (units)ViewValueLower BoundaryUpper Boundary
client_sv2_mining_message_submit_standardL2 Accesses (accesses)🚨 (view plot | view alert)26.00 (+45.77%)24.10 (107.87%)
client_sv2_mining_message_submit_standard_serializeL2 Accesses (accesses)🚨 (view plot | view alert)56.00 (+17.56%)53.77 (104.15%)
client_sv2_mining_message_submit_standard_serialize_deserializeInstructions (instructions)🚨 (view plot | view alert)10,585.00 (+0.39%)10,570.57 (100.14%)
client_sv2_mining_message_submit_standard_serialize_deserializeL1 Accesses (accesses)🚨 (view plot | view alert)15,399.00 (+0.37%)15,378.20 (100.14%)
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,672.00 (+0.48%)11,652.91 (100.16%)
client_sv2_open_channel_serialize_deserializeL2 Accesses (accesses)🚨 (view plot | view alert)84.00 (+13.96%)83.25 (100.91%)
client_sv2_setup_connectionL2 Accesses (accesses)🚨 (view plot | view alert)15.00 (+61.45%)14.30 (104.91%)
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,811.00 (+0.27%)21,790.04 (100.10%)

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,077.00 (+1.31%)2,127.01 (97.65%)✅ (view plot)473.00 (+0.48%)486.30 (97.27%)✅ (view plot)732.00 (-0.03%)755.04 (96.95%)✅ (view plot)10.00 (+42.49%)10.79 (92.65%)✅ (view plot)37.00 (+0.94%)38.55 (95.99%)
client_sv2_handle_message_mining✅ (view plot)8,253.00 (+0.65%)8,339.91 (98.96%)✅ (view plot)2,137.00 (+0.45%)2,171.21 (98.42%)✅ (view plot)3,158.00 (+0.42%)3,215.72 (98.21%)✅ (view plot)39.00 (+1.18%)43.57 (89.51%)✅ (view plot)140.00 (+0.79%)142.05 (98.56%)
client_sv2_mining_message_submit_standard✅ (view plot)6,316.00 (+0.61%)6,391.14 (98.82%)✅ (view plot)1,750.00 (+0.03%)1,763.06 (99.26%)✅ (view plot)2,546.00 (-0.29%)2,575.68 (98.85%)🚨 (view plot | view alert)26.00 (+45.77%)24.10 (107.87%)✅ (view plot)104.00 (+0.14%)106.90 (97.29%)
client_sv2_mining_message_submit_standard_serialize✅ (view plot)14,695.00 (-0.53%)15,030.55 (97.77%)✅ (view plot)4,694.00 (+0.01%)4,707.06 (99.72%)✅ (view plot)6,750.00 (-0.06%)6,774.99 (99.63%)🚨 (view plot | view alert)56.00 (+17.56%)53.77 (104.15%)✅ (view plot)219.00 (-1.48%)229.90 (95.26%)
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)27,499.00 (+0.07%)27,841.65 (98.77%)🚨 (view plot | view alert)10,585.00 (+0.39%)10,570.57 (100.14%)🚨 (view plot | view alert)15,399.00 (+0.37%)15,378.20 (100.14%)✅ (view plot)89.00 (+6.04%)89.95 (98.95%)✅ (view plot)333.00 (-0.53%)345.18 (96.47%)
client_sv2_open_channel✅ (view plot)4,417.00 (-1.61%)4,610.64 (95.80%)✅ (view plot)1,461.00 (+0.05%)1,474.33 (99.10%)✅ (view plot)2,157.00 (+0.19%)2,172.95 (99.27%)✅ (view plot)11.00 (-7.91%)15.19 (72.41%)✅ (view plot)63.00 (-3.16%)68.17 (92.41%)
client_sv2_open_channel_serialize✅ (view plot)14,006.00 (-1.43%)14,465.60 (96.82%)✅ (view plot)5,064.00 (+0.02%)5,077.33 (99.74%)✅ (view plot)7,321.00 (+0.04%)7,339.27 (99.75%)✅ (view plot)42.00 (+12.30%)42.26 (99.39%)✅ (view plot)185.00 (-3.43%)199.08 (92.93%)
client_sv2_open_channel_serialize_deserialize✅ (view plot)22,557.00 (-0.35%)23,019.30 (97.99%)🚨 (view plot | view alert)8,027.00 (+0.52%)8,012.93 (100.18%)🚨 (view plot | view alert)11,672.00 (+0.48%)11,652.91 (100.16%)🚨 (view plot | view alert)84.00 (+13.96%)83.25 (100.91%)✅ (view plot)299.00 (-1.76%)314.96 (94.93%)
client_sv2_setup_connection✅ (view plot)4,659.00 (-0.81%)4,764.55 (97.78%)✅ (view plot)1,502.00 (+0.05%)1,515.33 (99.12%)✅ (view plot)2,274.00 (-0.12%)2,299.44 (98.89%)🚨 (view plot | view alert)15.00 (+61.45%)14.30 (104.91%)✅ (view plot)66.00 (-2.68%)69.70 (94.69%)
client_sv2_setup_connection_serialize✅ (view plot)15,942.00 (-1.92%)16,511.66 (96.55%)✅ (view plot)5,963.00 (+0.01%)5,976.33 (99.78%)✅ (view plot)8,662.00 (+0.08%)8,677.79 (99.82%)✅ (view plot)49.00 (+9.42%)49.40 (99.18%)✅ (view plot)201.00 (-4.60%)218.24 (92.10%)
client_sv2_setup_connection_serialize_deserialize✅ (view plot)35,416.00 (-0.32%)35,747.22 (99.07%)🚨 (view plot | view alert)14,855.00 (+0.29%)14,840.35 (100.10%)🚨 (view plot | view alert)21,811.00 (+0.27%)21,790.04 (100.10%)✅ (view plot)110.00 (+9.98%)113.65 (96.79%)✅ (view plot)373.00 (-1.67%)385.03 (96.88%)

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

@plebhash plebhash merged commit cfcb972 into stratum-mining:dev Jun 27, 2024
13 checks passed
@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