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

Separate lib code from bin in mining-device #1163

Merged

Conversation

jbesraa
Copy link
Contributor

@jbesraa jbesraa commented Sep 12, 2024

Resolving MiningDevice in the list here #1093

Copy link
Contributor

github-actions bot commented Sep 12, 2024

🐰 Bencher Report

Branch1163/merge
Testbedsv2
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
client_sv2_handle_message_common📈 view plot
🚷 view threshold
44.42
(-0.48%)
46.46
(95.61%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
75.59
(-0.21%)
95.09
(79.49%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
14.77
(+0.58%)
14.85
(99.50%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
269.77
(+1.01%)
288.71
(93.44%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
596.19
(+0.74%)
638.09
(93.43%)
client_sv2_open_channel📈 view plot
🚷 view threshold
164.14
(-1.29%)
178.18
(92.12%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
274.45
(-0.51%)
308.27
(89.03%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
373.35
(-1.64%)
472.61
(79.00%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
163.93
(+0.85%)
186.59
(87.86%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
458.68
(+0.96%)
579.69
(79.12%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
950.14
(-4.88%)
1,167.84
(81.36%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Sep 12, 2024

🐰 Bencher Report

Branch1163/merge
Testbedsv1
Click to view all benchmark results
BenchmarkEstimated CyclesBenchmark Result
estimated cycles
(Result Δ%)
Upper Boundary
estimated cycles
(Limit %)
InstructionsBenchmark Result
instructions
(Result Δ%)
Upper Boundary
instructions
(Limit %)
L1 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
L2 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
RAM AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
get_authorize📈 view plot
🚷 view threshold
8,398.00
(-0.55%)
8,791.52
(95.52%)
📈 view plot
🚷 view threshold
3,746.00
(-0.06%)
3,881.43
(96.51%)
📈 view plot
🚷 view threshold
5,253.00
(-0.08%)
5,440.10
(96.56%)
📈 view plot
🚷 view threshold
6.00
(-14.48%)
11.67
(51.43%)
📈 view plot
🚷 view threshold
89.00
(-1.19%)
95.26
(93.43%)
get_submit📈 view plot
🚷 view threshold
95,365.00
(-0.11%)
96,195.71
(99.14%)
📈 view plot
🚷 view threshold
59,439.00
(-0.05%)
59,795.52
(99.40%)
📈 view plot
🚷 view threshold
85,365.00
(-0.06%)
85,873.74
(99.41%)
📈 view plot
🚷 view threshold
47.00
(-0.95%)
71.17
(66.04%)
📈 view plot
🚷 view threshold
279.00
(-0.58%)
289.85
(96.26%)
get_subscribe📈 view plot
🚷 view threshold
8,025.00
(+0.17%)
8,359.51
(96.00%)
📈 view plot
🚷 view threshold
2,841.00
(+0.15%)
2,963.81
(95.86%)
📈 view plot
🚷 view threshold
3,970.00
(+0.12%)
4,135.69
(95.99%)
📈 view plot
🚷 view threshold
13.00
(+0.97%)
23.16
(56.13%)
📈 view plot
🚷 view threshold
114.00
(+0.21%)
119.55
(95.36%)
serialize_authorize📈 view plot
🚷 view threshold
12,245.00
(-0.08%)
12,634.05
(96.92%)
📈 view plot
🚷 view threshold
5,317.00
(-0.04%)
5,452.43
(97.52%)
📈 view plot
🚷 view threshold
7,415.00
(-0.06%)
7,602.50
(97.53%)
📈 view plot
🚷 view threshold
7.00
(-22.89%)
14.91
(46.95%)
📈 view plot
🚷 view threshold
137.00
(+0.09%)
143.69
(95.35%)
serialize_deserialize_authorize📈 view plot
🚷 view threshold
24,743.00
(+0.52%)
25,148.27
(98.39%)
📈 view plot
🚷 view threshold
9,868.00
(-0.27%)
10,052.87
(98.16%)
📈 view plot
🚷 view threshold
13,928.00
(-0.27%)
14,197.62
(98.10%)
📈 view plot
🚷 view threshold
35.00
(+0.04%)
44.17
(79.24%)
📈 view plot
🚷 view threshold
304.00
(+1.59%)
313.54
(96.96%)
serialize_deserialize_handle_authorize📈 view plot
🚷 view threshold
30,376.00
(+0.37%)
30,724.33
(98.87%)
📈 view plot
🚷 view threshold
12,071.00
(-0.15%)
12,226.40
(98.73%)
📈 view plot
🚷 view threshold
17,091.00
(-0.15%)
17,307.78
(98.75%)
📈 view plot
🚷 view threshold
60.00
(+7.04%)
68.42
(87.70%)
📈 view plot
🚷 view threshold
371.00
(+0.91%)
380.86
(97.41%)
serialize_deserialize_handle_submit📈 view plot
🚷 view threshold
126,556.00
(+0.08%)
127,173.21
(99.51%)
📈 view plot
🚷 view threshold
73,280.00
(+0.00%)
73,672.51
(99.47%)
📈 view plot
🚷 view threshold
105,051.00
(+0.00%)
105,617.96
(99.46%)
📈 view plot
🚷 view threshold
108.00
(-1.80%)
142.14
(75.98%)
📈 view plot
🚷 view threshold
599.00
(+0.48%)
604.80
(99.04%)
serialize_deserialize_handle_subscribe📈 view plot
🚷 view threshold
28,024.00
(+1.09%)
28,592.79
(98.01%)
📈 view plot
🚷 view threshold
9,659.00
(+0.13%)
9,779.73
(98.77%)
📈 view plot
🚷 view threshold
13,659.00
(+0.10%)
13,830.44
(98.76%)
📈 view plot
🚷 view threshold
66.00
(+3.59%)
75.77
(87.10%)
📈 view plot
🚷 view threshold
401.00
(+2.01%)
416.26
(96.33%)
serialize_deserialize_submit📈 view plot
🚷 view threshold
115,277.00
(+0.08%)
115,897.46
(99.46%)
📈 view plot
🚷 view threshold
68,057.00
(-0.04%)
68,472.72
(99.39%)
📈 view plot
🚷 view threshold
97,647.00
(-0.06%)
98,283.15
(99.35%)
📈 view plot
🚷 view threshold
68.00
(+6.44%)
81.74
(83.19%)
📈 view plot
🚷 view threshold
494.00
(+0.74%)
499.42
(98.91%)
serialize_deserialize_subscribe📈 view plot
🚷 view threshold
23,435.00
(+1.25%)
24,004.66
(97.63%)
📈 view plot
🚷 view threshold
8,211.00
(+0.13%)
8,335.21
(98.51%)
📈 view plot
🚷 view threshold
11,565.00
(+0.12%)
11,737.22
(98.53%)
📈 view plot
🚷 view threshold
36.00
(-4.24%)
44.40
(81.09%)
📈 view plot
🚷 view threshold
334.00
(+2.49%)
348.08
(95.95%)
serialize_submit📈 view plot
🚷 view threshold
99,822.00
(-0.05%)
100,539.78
(99.29%)
📈 view plot
🚷 view threshold
61,483.00
(-0.05%)
61,844.22
(99.42%)
📈 view plot
🚷 view threshold
88,207.00
(-0.06%)
88,725.80
(99.42%)
📈 view plot
🚷 view threshold
48.00
(-1.44%)
70.31
(68.27%)
📈 view plot
🚷 view threshold
325.00
(+0.01%)
333.34
(97.50%)
serialize_subscribe📈 view plot
🚷 view threshold
11,422.00
(+0.28%)
11,758.70
(97.14%)
📈 view plot
🚷 view threshold
4,188.00
(+0.10%)
4,310.81
(97.15%)
📈 view plot
🚷 view threshold
5,827.00
(+0.08%)
5,992.64
(97.24%)
📈 view plot
🚷 view threshold
13.00
(-4.42%)
22.24
(58.46%)
📈 view plot
🚷 view threshold
158.00
(+0.56%)
164.41
(96.10%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Sep 12, 2024

🐰 Bencher Report

Branch1163/merge
Testbedsv1
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
client-submit-serialize📈 view plot
🚷 view threshold
6,886.40
(+0.03%)
7,400.61
(93.05%)
client-submit-serialize-deserialize📈 view plot
🚷 view threshold
7,971.90
(+0.80%)
8,615.47
(92.53%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle📈 view plot
🚷 view threshold
8,448.50
(-0.37%)
9,063.80
(93.21%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle📈 view plot
🚷 view threshold
969.61
(+5.58%)
984.12
(98.53%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize📈 view plot
🚷 view threshold
732.22
(+2.10%)
761.92
(96.10%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize📈 view plot
🚷 view threshold
249.21
(-0.06%)
263.59
(94.54%)
client-sv1-get-authorize/client-sv1-get-authorize📈 view plot
🚷 view threshold
157.84
(-0.12%)
167.58
(94.19%)
client-sv1-get-submit📈 view plot
🚷 view threshold
6,640.00
(-0.26%)
7,192.23
(92.32%)
client-sv1-get-subscribe/client-sv1-get-subscribe📈 view plot
🚷 view threshold
282.76
(+2.56%)
296.21
(95.46%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle📈 view plot
🚷 view threshold
786.29
(+2.38%)
834.94
(94.17%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize📈 view plot
🚷 view threshold
655.51
(+3.65%)
684.02
(95.83%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize📈 view plot
🚷 view threshold
208.05
(-0.55%)
231.41
(89.91%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Sep 12, 2024

🐰 Bencher Report

Branch1163/merge
Testbedsv2
Click to view all benchmark results
BenchmarkEstimated CyclesBenchmark Result
estimated cycles
(Result Δ%)
Upper Boundary
estimated cycles
(Limit %)
InstructionsBenchmark Result
instructions
(Result Δ%)
Upper Boundary
instructions
(Limit %)
L1 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
L2 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
RAM AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
client_sv2_handle_message_common📈 view plot
🚷 view threshold
2,107.00
(+1.44%)
2,207.37
(95.45%)
📈 view plot
🚷 view threshold
473.00
(+0.22%)
490.72
(96.39%)
📈 view plot
🚷 view threshold
732.00
(-0.27%)
761.80
(96.09%)
📈 view plot
🚷 view threshold
9.00
(+52.18%)
14.38
(62.57%)
📈 view plot
🚷 view threshold
38.00
(+1.25%)
41.19
(92.26%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
8,200.00
(+0.00%)
8,350.12
(98.20%)
📈 view plot
🚷 view threshold
2,137.00
(+0.17%)
2,179.83
(98.04%)
📈 view plot
🚷 view threshold
3,160.00
(+0.18%)
3,229.07
(97.86%)
📈 view plot
🚷 view threshold
35.00
(-4.44%)
45.35
(77.18%)
📈 view plot
🚷 view threshold
139.00
(+0.05%)
142.33
(97.66%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
6,297.00
(+0.28%)
6,416.12
(98.14%)
📈 view plot
🚷 view threshold
1,750.00
(-0.02%)
1,768.07
(98.98%)
📈 view plot
🚷 view threshold
2,547.00
(-0.25%)
2,580.73
(98.69%)
📈 view plot
🚷 view threshold
22.00
(+28.70%)
25.00
(88.01%)
📈 view plot
🚷 view threshold
104.00
(-0.01%)
107.76
(96.51%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
14,758.00
(+0.08%)
15,052.88
(98.04%)
📈 view plot
🚷 view threshold
4,694.00
(-0.01%)
4,712.07
(99.62%)
📈 view plot
🚷 view threshold
6,753.00
(-0.06%)
6,783.80
(99.55%)
📈 view plot
🚷 view threshold
47.00
(+5.66%)
55.21
(85.12%)
📈 view plot
🚷 view threshold
222.00
(+0.04%)
230.42
(96.35%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
27,566.00
(+0.22%)
27,893.65
(98.83%)
📈 view plot
🚷 view threshold
10,585.00
(+0.17%)
10,639.22
(99.49%)
📈 view plot
🚷 view threshold
15,401.00
(+0.16%)
15,481.68
(99.48%)
📈 view plot
🚷 view threshold
81.00
(-0.84%)
90.52
(89.48%)
📈 view plot
🚷 view threshold
336.00
(+0.34%)
345.88
(97.14%)
client_sv2_open_channel📈 view plot
🚷 view threshold
4,341.00
(-1.79%)
4,668.45
(92.99%)
📈 view plot
🚷 view threshold
1,461.00
(+0.03%)
1,477.94
(98.85%)
📈 view plot
🚷 view threshold
2,161.00
(+0.17%)
2,186.08
(98.85%)
📈 view plot
🚷 view threshold
9.00
(-7.10%)
18.47
(48.73%)
📈 view plot
🚷 view threshold
61.00
(-3.59%)
69.85
(87.33%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
13,990.00
(-0.83%)
14,523.70
(96.33%)
📈 view plot
🚷 view threshold
5,064.00
(+0.01%)
5,080.94
(99.67%)
📈 view plot
🚷 view threshold
7,325.00
(+0.03%)
7,353.47
(99.61%)
📈 view plot
🚷 view threshold
38.00
(+7.47%)
43.72
(86.93%)
📈 view plot
🚷 view threshold
185.00
(-1.99%)
200.63
(92.21%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
22,617.00
(-0.09%)
23,029.92
(98.21%)
📈 view plot
🚷 view threshold
8,027.00
(+0.24%)
8,079.55
(99.35%)
📈 view plot
🚷 view threshold
11,672.00
(+0.19%)
11,756.13
(99.28%)
📈 view plot
🚷 view threshold
82.00
(+11.29%)
85.21
(96.24%)
📈 view plot
🚷 view threshold
301.00
(-0.78%)
314.74
(95.63%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
4,681.00
(-0.14%)
4,783.71
(97.85%)
📈 view plot
🚷 view threshold
1,502.00
(+0.03%)
1,518.94
(98.88%)
📈 view plot
🚷 view threshold
2,276.00
(-0.07%)
2,304.81
(98.75%)
📈 view plot
🚷 view threshold
12.00
(+30.61%)
15.71
(76.37%)
📈 view plot
🚷 view threshold
67.00
(-0.80%)
70.27
(95.35%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
16,172.00
(-0.15%)
16,509.56
(97.96%)
📈 view plot
🚷 view threshold
5,963.00
(+0.01%)
5,979.94
(99.72%)
📈 view plot
🚷 view threshold
8,657.00
(-0.04%)
8,692.61
(99.59%)
📈 view plot
🚷 view threshold
47.00
(+13.72%)
54.92
(85.57%)
📈 view plot
🚷 view threshold
208.00
(-0.68%)
217.73
(95.53%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
35,546.00
(-0.00%)
35,778.68
(99.35%)
📈 view plot
🚷 view threshold
14,855.00
(+0.13%)
14,908.62
(99.64%)
📈 view plot
🚷 view threshold
21,816.00
(+0.11%)
21,911.85
(99.56%)
📈 view plot
🚷 view threshold
100.00
(+6.07%)
115.88
(86.30%)
📈 view plot
🚷 view threshold
378.00
(-0.40%)
385.04
(98.17%)
🐰 View full continuous benchmarking report in Bencher

@@ -24,3 +29,6 @@ tracing = { version = "0.1" }
tracing-subscriber = "0.3"
sha2 = "0.10.6"
tokio = "^1.38.0"

[features]
abort_mining = []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the purpose of this feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to replicate exactly the MG test, which says that the mining-device should not start mining https://github.com/stratum-mining/stratum/pull/1163/files#diff-cc06b104e73cde20ec61e683c5b4eb74e5422641e422652485c1026dd72a7a98R255

In practice I do not think its needed tbh because anyway the mining-device wont be able to open a channel

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok so why do we have it? can't we get away with not having this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the redundant flag

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the redundant flag

I don't understand, abort_mining seems to be still there

@jbesraa jbesraa force-pushed the 2024-09-12-mining-device-lib-separation branch 2 times, most recently from a7ffeff to 36ea0a2 Compare September 17, 2024 12:47
@jbesraa jbesraa marked this pull request as ready for review September 17, 2024 12:49
Copy link
Contributor

🐰 Bencher Report

Branch1163/merge@fbf7d9bb-09d4-4be7-9558-156e90760eef
Testbedsv2
Click to view all benchmark results
BenchmarkEstimated CyclesBenchmark Result
estimated cycles
(Result Δ%)
Upper Boundary
estimated cycles
(Limit %)
InstructionsBenchmark Result
instructions
(Result Δ%)
Upper Boundary
instructions
(Limit %)
L1 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
L2 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
RAM AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
client_sv2_handle_message_common📈 view plot
🚷 view threshold
2,125.00
(+2.33%)
2,208.06
(96.24%)
📈 view plot
🚷 view threshold
473.00
(+0.23%)
490.92
(96.35%)
📈 view plot
🚷 view threshold
735.00
(+0.14%)
762.13
(96.44%)
📈 view plot
🚷 view threshold
5.00
(-15.08%)
14.40
(34.72%)
📈 view plot
🚷 view threshold
39.00
(+3.94%)
41.21
(94.63%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
8,128.00
(-0.87%)
8,352.65
(97.31%)
📈 view plot
🚷 view threshold
2,137.00
(+0.17%)
2,180.29
(98.01%)
📈 view plot
🚷 view threshold
3,163.00
(+0.28%)
3,229.86
(97.93%)
📈 view plot
🚷 view threshold
34.00
(-7.23%)
45.40
(74.89%)
📈 view plot
🚷 view threshold
137.00
(-1.38%)
142.39
(96.21%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
6,247.00
(-0.50%)
6,417.04
(97.35%)
📈 view plot
🚷 view threshold
1,750.00
(-0.02%)
1,768.29
(98.97%)
📈 view plot
🚷 view threshold
2,552.00
(-0.06%)
2,581.07
(98.87%)
📈 view plot
🚷 view threshold
18.00
(+5.68%)
24.81
(72.56%)
📈 view plot
🚷 view threshold
103.00
(-0.95%)
107.79
(95.56%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
14,632.00
(-0.77%)
15,056.68
(97.18%)
📈 view plot
🚷 view threshold
4,694.00
(-0.01%)
4,712.29
(99.61%)
📈 view plot
🚷 view threshold
6,762.00
(+0.07%)
6,784.22
(99.67%)
📈 view plot
🚷 view threshold
41.00
(-7.64%)
55.17
(74.31%)
📈 view plot
🚷 view threshold
219.00
(-1.30%)
230.52
(95.00%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
27,464.00
(-0.14%)
27,894.09
(98.46%)
📈 view plot
🚷 view threshold
10,585.00
(+0.18%)
10,639.13
(99.49%)
📈 view plot
🚷 view threshold
15,404.00
(+0.19%)
15,481.76
(99.50%)
📈 view plot
🚷 view threshold
81.00
(-0.87%)
90.55
(89.45%)
📈 view plot
🚷 view threshold
333.00
(-0.54%)
345.93
(96.26%)
client_sv2_open_channel📈 view plot
🚷 view threshold
4,363.00
(-1.33%)
4,671.08
(93.40%)
📈 view plot
🚷 view threshold
1,461.00
(+0.03%)
1,478.14
(98.84%)
📈 view plot
🚷 view threshold
2,163.00
(+0.27%)
2,186.25
(98.94%)
📈 view plot
🚷 view threshold
6.00
(-38.37%)
18.56
(32.33%)
📈 view plot
🚷 view threshold
62.00
(-2.07%)
69.92
(88.68%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
13,978.00
(-0.92%)
14,529.17
(96.21%)
📈 view plot
🚷 view threshold
5,064.00
(+0.01%)
5,081.14
(99.66%)
📈 view plot
🚷 view threshold
7,328.00
(+0.07%)
7,353.77
(99.65%)
📈 view plot
🚷 view threshold
35.00
(-0.97%)
43.74
(80.02%)
📈 view plot
🚷 view threshold
185.00
(-2.02%)
200.78
(92.14%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
22,635.00
(-0.01%)
23,034.74
(98.26%)
📈 view plot
🚷 view threshold
8,027.00
(+0.24%)
8,079.39
(99.35%)
📈 view plot
🚷 view threshold
11,675.00
(+0.22%)
11,755.88
(99.31%)
📈 view plot
🚷 view threshold
78.00
(+5.90%)
85.14
(91.61%)
📈 view plot
🚷 view threshold
302.00
(-0.46%)
314.88
(95.91%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
4,703.00
(+0.33%)
4,785.03
(98.29%)
📈 view plot
🚷 view threshold
1,502.00
(+0.03%)
1,519.14
(98.87%)
📈 view plot
🚷 view threshold
2,278.00
(+0.02%)
2,305.12
(98.82%)
📈 view plot
🚷 view threshold
9.00
(-1.92%)
15.73
(57.23%)
📈 view plot
🚷 view threshold
68.00
(+0.66%)
70.30
(96.72%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
16,140.00
(-0.36%)
16,513.60
(97.74%)
📈 view plot
🚷 view threshold
5,963.00
(+0.01%)
5,980.14
(99.71%)
📈 view plot
🚷 view threshold
8,665.00
(+0.05%)
8,692.85
(99.68%)
📈 view plot
🚷 view threshold
39.00
(-5.67%)
54.92
(71.02%)
📈 view plot
🚷 view threshold
208.00
(-0.69%)
217.84
(95.48%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
35,594.00
(+0.13%)
35,782.26
(99.47%)
📈 view plot
🚷 view threshold
14,855.00
(+0.13%)
14,908.45
(99.64%)
📈 view plot
🚷 view threshold
21,819.00
(+0.13%)
21,911.53
(99.58%)
📈 view plot
🚷 view threshold
95.00
(+0.72%)
116.04
(81.87%)
📈 view plot
🚷 view threshold
380.00
(+0.12%)
385.10
(98.68%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Collaborator

@rrybarczyk rrybarczyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Collaborator

@rrybarczyk rrybarczyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to understand why we removed the info log containing the req_id and then fix the cargo clippy error in the CI.

roles/test-utils/mining-device/src/lib/mod.rs Show resolved Hide resolved
@jbesraa jbesraa force-pushed the 2024-09-12-mining-device-lib-separation branch 3 times, most recently from b3b55e7 to 19a6968 Compare September 20, 2024 14:01
Copy link
Contributor

🐰 Bencher Report

Branch1163/merge@838c7910-2edb-49e4-99b3-692a1b114978
Testbedsv1
Click to view all benchmark results
BenchmarkEstimated CyclesBenchmark Result
estimated cycles
(Result Δ%)
Upper Boundary
estimated cycles
(Limit %)
InstructionsBenchmark Result
instructions
(Result Δ%)
Upper Boundary
instructions
(Limit %)
L1 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
L2 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
RAM AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
get_authorize📈 view plot
🚷 view threshold
8,442.00
(-0.04%)
8,791.97
(96.02%)
📈 view plot
🚷 view threshold
3,775.00
(+0.71%)
3,881.87
(97.25%)
📈 view plot
🚷 view threshold
5,302.00
(+0.85%)
5,440.90
(97.45%)
📈 view plot
🚷 view threshold
5.00
(-28.49%)
11.65
(42.91%)
📈 view plot
🚷 view threshold
89.00
(-1.21%)
95.27
(93.41%)
get_submit📈 view plot
🚷 view threshold
95,395.00
(-0.08%)
96,197.51
(99.17%)
📈 view plot
🚷 view threshold
59,525.00
(+0.09%)
59,796.46
(99.55%)
📈 view plot
🚷 view threshold
85,515.00
(+0.12%)
85,875.61
(99.58%)
📈 view plot
🚷 view threshold
44.00
(-7.72%)
71.51
(61.53%)
📈 view plot
🚷 view threshold
276.00
(-1.66%)
289.99
(95.17%)
get_subscribe📈 view plot
🚷 view threshold
8,007.00
(-0.03%)
8,359.00
(95.79%)
📈 view plot
🚷 view threshold
2,851.00
(+0.50%)
2,963.94
(96.19%)
📈 view plot
🚷 view threshold
3,987.00
(+0.54%)
4,135.94
(96.40%)
📈 view plot
🚷 view threshold
13.00
(+0.67%)
23.19
(56.05%)
📈 view plot
🚷 view threshold
113.00
(-0.61%)
119.58
(94.50%)
serialize_authorize📈 view plot
🚷 view threshold
12,217.00
(-0.31%)
12,633.11
(96.71%)
📈 view plot
🚷 view threshold
5,346.00
(+0.50%)
5,452.87
(98.04%)
📈 view plot
🚷 view threshold
7,467.00
(+0.64%)
7,603.35
(98.21%)
📈 view plot
🚷 view threshold
5.00
(-45.35%)
15.05
(33.22%)
📈 view plot
🚷 view threshold
135.00
(-1.34%)
143.64
(93.98%)
serialize_deserialize_authorize📈 view plot
🚷 view threshold
24,888.00
(+1.12%)
25,148.18
(98.97%)
📈 view plot
🚷 view threshold
9,923.00
(+0.28%)
10,053.41
(98.70%)
📈 view plot
🚷 view threshold
14,023.00
(+0.40%)
14,198.59
(98.76%)
📈 view plot
🚷 view threshold
31.00
(-11.57%)
44.44
(69.75%)
📈 view plot
🚷 view threshold
306.00
(+2.30%)
313.37
(97.65%)
serialize_deserialize_handle_authorize📈 view plot
🚷 view threshold
30,446.00
(+0.61%)
30,721.04
(99.10%)
📈 view plot
🚷 view threshold
12,100.00
(+0.09%)
12,226.92
(98.96%)
📈 view plot
🚷 view threshold
17,141.00
(+0.14%)
17,308.32
(99.03%)
📈 view plot
🚷 view threshold
57.00
(+1.50%)
68.54
(83.16%)
📈 view plot
🚷 view threshold
372.00
(+1.21%)
380.66
(97.72%)
serialize_deserialize_handle_submit📈 view plot
🚷 view threshold
126,637.00
(+0.14%)
127,172.51
(99.58%)
📈 view plot
🚷 view threshold
73,363.00
(+0.12%)
73,673.56
(99.58%)
📈 view plot
🚷 view threshold
105,192.00
(+0.14%)
105,620.06
(99.59%)
📈 view plot
🚷 view threshold
110.00
(-0.21%)
142.21
(77.35%)
📈 view plot
🚷 view threshold
597.00
(+0.15%)
604.61
(98.74%)
serialize_deserialize_handle_subscribe📈 view plot
🚷 view threshold
28,028.00
(+1.14%)
28,580.80
(98.07%)
📈 view plot
🚷 view threshold
9,669.00
(+0.24%)
9,779.57
(98.87%)
📈 view plot
🚷 view threshold
13,678.00
(+0.24%)
13,830.30
(98.90%)
📈 view plot
🚷 view threshold
63.00
(-1.15%)
75.81
(83.11%)
📈 view plot
🚷 view threshold
401.00
(+2.07%)
415.94
(96.41%)
serialize_deserialize_submit📈 view plot
🚷 view threshold
115,517.00
(+0.29%)
115,902.67
(99.67%)
📈 view plot
🚷 view threshold
68,223.00
(+0.20%)
68,476.22
(99.63%)
📈 view plot
🚷 view threshold
97,932.00
(+0.23%)
98,289.76
(99.64%)
📈 view plot
🚷 view threshold
66.00
(+3.12%)
81.83
(80.66%)
📈 view plot
🚷 view threshold
493.00
(+0.55%)
499.16
(98.77%)
serialize_deserialize_subscribe📈 view plot
🚷 view threshold
23,430.00
(+1.27%)
23,992.92
(97.65%)
📈 view plot
🚷 view threshold
8,228.00
(+0.33%)
8,335.23
(98.71%)
📈 view plot
🚷 view threshold
11,595.00
(+0.38%)
11,737.37
(98.79%)
📈 view plot
🚷 view threshold
36.00
(-4.64%)
45.07
(79.88%)
📈 view plot
🚷 view threshold
333.00
(+2.27%)
347.73
(95.76%)
serialize_submit📈 view plot
🚷 view threshold
99,792.00
(-0.08%)
100,540.07
(99.26%)
📈 view plot
🚷 view threshold
61,569.00
(+0.09%)
61,845.15
(99.55%)
📈 view plot
🚷 view threshold
88,357.00
(+0.11%)
88,727.60
(99.58%)
📈 view plot
🚷 view threshold
47.00
(-3.94%)
70.56
(66.61%)
📈 view plot
🚷 view threshold
320.00
(-1.51%)
333.40
(95.98%)
serialize_subscribe📈 view plot
🚷 view threshold
11,336.00
(-0.44%)
11,758.46
(96.41%)
📈 view plot
🚷 view threshold
4,198.00
(+0.34%)
4,310.94
(97.38%)
📈 view plot
🚷 view threshold
5,846.00
(+0.40%)
5,992.95
(97.55%)
📈 view plot
🚷 view threshold
13.00
(-4.81%)
22.27
(58.38%)
📈 view plot
🚷 view threshold
155.00
(-1.28%)
164.47
(94.24%)
🐰 View full continuous benchmarking report in Bencher

@jbesraa jbesraa force-pushed the 2024-09-12-mining-device-lib-separation branch 3 times, most recently from b87a928 to 27c4b44 Compare September 23, 2024 09:31
@jbesraa
Copy link
Contributor Author

jbesraa commented Sep 23, 2024

CI is currently broken, it is fixed at #1170

@plebhash
Copy link
Collaborator

CI is currently broken, it is fixed at #1170

@jbesraa FYI this was also necessary to fix the sv2.h Header Check #1172

please rebase with this

Isolating the library code into a `lib/mod.rs` and consume it in
`main.rs`.
..cargo does not allow hyphens in library target name
@jbesraa jbesraa force-pushed the 2024-09-12-mining-device-lib-separation branch from 27c4b44 to 48a81b0 Compare September 26, 2024 08:46
@jbesraa
Copy link
Contributor Author

jbesraa commented Sep 26, 2024

Rebased without further changes

@rrybarczyk rrybarczyk merged commit ba4c935 into stratum-mining:main Sep 30, 2024
34 checks passed
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.

4 participants