Skip to content

feat: Improve the code#686

Merged
gtema merged 4 commits intomainfrom
policy
May 4, 2026
Merged

feat: Improve the code#686
gtema merged 4 commits intomainfrom
policy

Conversation

@gtema
Copy link
Copy Markdown
Collaborator

@gtema gtema commented Apr 29, 2026

  • chore: Update policies
  • chore: Add docstrings in the core crate
  • chore: Add proper docstring to all methods

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

🦢 Load Test Results

Goose Attack Report

Plan Overview

Action Started Stopped Elapsed Users
Increasing 26-05-04 11:36:37 26-05-04 11:36:39 00:00:02 0 → 4
Maintaining 26-05-04 11:36:39 26-05-04 11:37:09 00:00:30 4
Decreasing 26-05-04 11:37:09 26-05-04 11:37:09 00:00:00 0 ← 4

Request Metrics

Method Name # Requests # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
GET 9087 0 12.71 7 32 302.90 0.00
Aggregated 9087 0 12.71 7 32 302.90 0.00

Response Time Metrics

Method Name 50%ile (ms) 60%ile (ms) 70%ile (ms) 80%ile (ms) 90%ile (ms) 95%ile (ms) 99%ile (ms) 100%ile (ms)
GET 11 13 16 16 17 18 20 32
Aggregated 11 13 16 16 17 18 20 32

Status Code Metrics

Method Name Status Codes
GET 9,087 [200]
Aggregated 9,087 [200]

Transaction Metrics

Transaction # Times Run # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
ListUsers
0.0 0 0 0.00 0 0 0.00 0.00
0.1 5593 0 10.25 7 22 186.43 0.00
ValidateToken
1.0 0 0 0.00 0 0 0.00 0.00
1.1 3494 0 16.72 13 32 116.47 0.00
Aggregated 9087 0 12.71 7 32 302.90 0.00

Scenario Metrics

Transaction # Users # Times Run Average (ms) Min (ms) Max (ms) Scenarios/s Iterations
ListUsers 2 5591 10.26 7 22 186.37 2795.50
ValidateToken 2 3492 16.72 13 32 116.40 1746.00
Aggregated 4 9083 12.74 7 32 302.77 4541.50

View full report

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

🐰 Bencher Report

Branchpolicy
Testbedubuntu-latest

🚨 2 Alerts

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
Command_Serde/pack/deleteLatency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
135.64 ns
(+11.18%)Baseline: 122.00 ns
133.44 ns
(101.65%)

get_fernet_token_timestamp/projectLatency
nanoseconds (ns)
📈 plot
🚷 threshold
🚨 alert (🔔)
171.49 ns
(+14.15%)Baseline: 150.23 ns
170.50 ns
(100.58%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
Command_Serde/apply/remove📈 view plot
🚷 view threshold
125,080.00 ns
(+5.05%)Baseline: 119,066.78 ns
188,245.37 ns
(66.45%)
Command_Serde/apply/set📈 view plot
🚷 view threshold
133,100.00 ns
(+6.64%)Baseline: 124,810.33 ns
198,164.85 ns
(67.17%)
Command_Serde/pack/delete📈 view plot
🚷 view threshold
🚨 view alert (🔔)
135.64 ns
(+11.18%)Baseline: 122.00 ns
133.44 ns
(101.65%)

Command_Serde/pack/delete_index📈 view plot
🚷 view threshold
124.22 ns
(+8.12%)Baseline: 114.89 ns
126.87 ns
(97.91%)
Command_Serde/pack/set📈 view plot
🚷 view threshold
213.79 ns
(+5.84%)Baseline: 201.98 ns
227.80 ns
(93.85%)
Command_Serde/pack/set_index📈 view plot
🚷 view threshold
124.94 ns
(+8.21%)Baseline: 115.46 ns
129.35 ns
(96.59%)
Command_Serde/unpack/delete📈 view plot
🚷 view threshold
189.39 ns
(+0.26%)Baseline: 188.90 ns
228.98 ns
(82.71%)
Command_Serde/unpack/delete_index📈 view plot
🚷 view threshold
170.22 ns
(+4.01%)Baseline: 163.66 ns
192.67 ns
(88.35%)
Command_Serde/unpack/set📈 view plot
🚷 view threshold
245.29 ns
(-0.41%)Baseline: 246.31 ns
259.52 ns
(94.52%)
Command_Serde/unpack/set_index📈 view plot
🚷 view threshold
169.85 ns
(+4.88%)Baseline: 161.95 ns
191.08 ns
(88.89%)
Payload_encryption/pack/inner📈 view plot
🚷 view threshold
65.54 ns
(-2.44%)Baseline: 67.18 ns
77.57 ns
(84.48%)
Payload_encryption/pack/remove_cmd📈 view plot
🚷 view threshold
132.83 ns
(+5.25%)Baseline: 126.21 ns
148.81 ns
(89.26%)
Payload_encryption/pack/set_cmd📈 view plot
🚷 view threshold
247.96 ns
(+4.73%)Baseline: 236.75 ns
270.06 ns
(91.82%)
Payload_encryption/unpack/inner📈 view plot
🚷 view threshold
161.40 ns
(-0.40%)Baseline: 162.06 ns
177.16 ns
(91.10%)
Payload_encryption/unpack/remove_cmd📈 view plot
🚷 view threshold
195.08 ns
(-3.50%)Baseline: 202.16 ns
233.21 ns
(83.65%)
Payload_encryption/unpack/set_cmd📈 view plot
🚷 view threshold
264.49 ns
(-0.90%)Baseline: 266.90 ns
333.99 ns
(79.19%)
Raft_1Node_Latency/prefix/1node📈 view plot
🚷 view threshold
2,513,000.00 ns
(-28.14%)Baseline: 3,496,918.18 ns
7,163,098.34 ns
(35.08%)
Raft_1Node_Latency/read/1node📈 view plot
🚷 view threshold
662.77 ns
(+25.08%)Baseline: 529.86 ns
881.09 ns
(75.22%)
Raft_1Node_Latency/remove/1node📈 view plot
🚷 view threshold
360,410.00 ns
(+5.28%)Baseline: 342,327.27 ns
526,203.50 ns
(68.49%)
Raft_1Node_Latency/write/1node📈 view plot
🚷 view threshold
358,300.00 ns
(+3.47%)Baseline: 346,268.18 ns
541,125.65 ns
(66.21%)
build_snapshot/default📈 view plot
🚷 view threshold
85,173.00 ns
(-2.47%)Baseline: 87,331.89 ns
102,047.55 ns
(83.46%)
fernet token/project📈 view plot
🚷 view threshold
1,488.30 ns
(+0.84%)Baseline: 1,475.90 ns
1,558.75 ns
(95.48%)
get_data_keyspace📈 view plot
🚷 view threshold
0.31 ns
(-3.45%)Baseline: 0.32 ns
0.37 ns
(83.28%)
get_db📈 view plot
🚷 view threshold
0.31 ns
(-2.98%)Baseline: 0.32 ns
0.37 ns
(83.31%)
get_fernet_token_timestamp/project📈 view plot
🚷 view threshold
🚨 view alert (🔔)
171.49 ns
(+14.15%)Baseline: 150.23 ns
170.50 ns
(100.58%)

get_keyspace📈 view plot
🚷 view threshold
4.32 ns
(-2.54%)Baseline: 4.43 ns
5.08 ns
(84.96%)
🐰 View full continuous benchmarking report in Bencher

gtema added 4 commits May 4, 2026 13:21
try to ensure we enforce policies everywhere.
Hope those help to be able to better understand the purpose of function
and mainly the parameters.
@gtema gtema merged commit 9e8a5da into main May 4, 2026
33 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.

1 participant