-
Notifications
You must be signed in to change notification settings - Fork 113
fix: clippy::uninlined_format_args and small refactors
#2177
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
Conversation
|
The Benchmark CI error looks spurious to me... |
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.
Benchmark Results
Details
| Benchmark | Current: c84ae20 | Previous: a2d2e33 | Performance Ratio |
|---|---|---|---|
| startup_benchmark Build Time | 98.37 s |
98.11 s |
1.00 ❗ |
| startup_benchmark File Size | 0.82 MB |
0.82 MB |
1.00 ❗ |
| Startup Time - 1 core | 0.95 s (±0.03 s) |
0.92 s (±0.04 s) |
1.03 |
| Startup Time - 2 cores | 0.94 s (±0.03 s) |
0.94 s (±0.04 s) |
1.00 |
| Startup Time - 4 cores | 0.93 s (±0.03 s) |
0.95 s (±0.02 s) |
0.97 |
| multithreaded_benchmark Build Time | 95.80 s |
95.65 s |
1.00 ❗ |
| multithreaded_benchmark File Size | 0.96 MB |
0.96 MB |
1.00 ❗ |
| Multithreaded Pi Efficiency - 2 Threads | 87.62 % (±7.96 %) |
88.13 % (±7.50 %) |
0.99 |
| Multithreaded Pi Efficiency - 4 Threads | 44.24 % (±3.37 %) |
44.56 % (±3.00 %) |
0.99 |
| Multithreaded Pi Efficiency - 8 Threads | 25.01 % (±2.13 %) |
25.85 % (±2.32 %) |
0.97 |
| micro_benchmarks Build Time | 93.62 s |
93.76 s |
1.00 ❗ |
| micro_benchmarks File Size | 0.97 MB |
0.97 MB |
1.00 ❗ |
| Scheduling time - 1 thread | 67.14 ticks (±4.36 ticks) |
65.74 ticks (±2.62 ticks) |
1.02 |
| Scheduling time - 2 threads | 39.06 ticks (±7.08 ticks) |
38.15 ticks (±5.63 ticks) |
1.02 |
| Micro - Time for syscall (getpid) | 3.81 ticks (±0.55 ticks) |
4.08 ticks (±0.61 ticks) |
0.93 |
| Memcpy speed - (built_in) block size 4096 | 69471.65 MByte/s (±49616.28 MByte/s) |
68134.15 MByte/s (±48416.13 MByte/s) |
1.02 |
| Memcpy speed - (built_in) block size 1048576 | 29612.99 MByte/s (±24276.44 MByte/s) |
29775.67 MByte/s (±24370.05 MByte/s) |
0.99 |
| Memcpy speed - (built_in) block size 16777216 | 28662.62 MByte/s (±23845.52 MByte/s) |
28776.49 MByte/s (±23943.10 MByte/s) |
1.00 |
| Memset speed - (built_in) block size 4096 | 70063.58 MByte/s (±49970.66 MByte/s) |
68991.38 MByte/s (±48991.61 MByte/s) |
1.02 |
| Memset speed - (built_in) block size 1048576 | 30335.20 MByte/s (±24709.99 MByte/s) |
30519.68 MByte/s (±24790.56 MByte/s) |
0.99 |
| Memset speed - (built_in) block size 16777216 | 29445.82 MByte/s (±24293.63 MByte/s) |
29560.49 MByte/s (±24386.41 MByte/s) |
1.00 |
| Memcpy speed - (rust) block size 4096 | 61778.06 MByte/s (±45508.74 MByte/s) |
60546.35 MByte/s (±44625.78 MByte/s) |
1.02 |
| Memcpy speed - (rust) block size 1048576 | 29535.41 MByte/s (±24235.62 MByte/s) |
29531.83 MByte/s (±24324.31 MByte/s) |
1.00 |
| Memcpy speed - (rust) block size 16777216 | 28569.52 MByte/s (±23762.77 MByte/s) |
28814.85 MByte/s (±23984.59 MByte/s) |
0.99 |
| Memset speed - (rust) block size 4096 | 62908.63 MByte/s (±46272.29 MByte/s) |
61592.50 MByte/s (±45338.24 MByte/s) |
1.02 |
| Memset speed - (rust) block size 1048576 | 30310.99 MByte/s (±24690.87 MByte/s) |
30365.90 MByte/s (±24830.39 MByte/s) |
1.00 |
| Memset speed - (rust) block size 16777216 | 29350.48 MByte/s (±24209.66 MByte/s) |
29592.77 MByte/s (±24424.37 MByte/s) |
0.99 |
| alloc_benchmarks Build Time | 92.13 s |
91.53 s |
1.01 ❗ |
| alloc_benchmarks File Size | 0.89 MB |
0.89 MB |
1.00 ❗ |
| Allocations - Allocation success | 100.00 % |
100.00 % |
1 |
| Allocations - Deallocation success | 100.00 % |
100.00 % |
1 |
| Allocations - Pre-fail Allocations | 100.00 % |
100.00 % |
1 |
| Allocations - Average Allocation time | 6143.28 Ticks (±87.49 Ticks) |
6065.83 Ticks (±70.16 Ticks) |
1.01 |
| Allocations - Average Allocation time (no fail) | 6143.28 Ticks (±87.49 Ticks) |
6065.83 Ticks (±70.16 Ticks) |
1.01 |
| Allocations - Average Deallocation time | 765.45 Ticks (±106.16 Ticks) |
757.49 Ticks (±92.33 Ticks) |
1.01 |
| mutex_benchmark Build Time | 91.43 s |
92.00 s |
0.99 ❗ |
| mutex_benchmark File Size | 0.97 MB |
0.97 MB |
1.00 ❗ |
| Mutex Stress Test Average Time per Iteration - 1 Threads | 12.44 ns (±0.61 ns) |
12.52 ns (±0.61 ns) |
0.99 |
| Mutex Stress Test Average Time per Iteration - 2 Threads | 13.08 ns (±0.98 ns) |
13.22 ns (±0.90 ns) |
0.99 |
This comment was automatically generated by workflow using github-action-benchmark.
|
Clippy does not seem to detect |
|
#2180 should help with catching more of these in the future. |
Yesn't. This is hermit-os/hermit-rs#873. Maybe our runners got faster again. #2179 should suffice as a workaround until the bad benchmark is fixed. |
mkroening
left a comment
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.
Thanks for the PR! The first commit is definitely good to go!
I will split up the other one and adjust it slightly.
Our policy is that free-standing functions should not be imported, so that's good.
We usually avoid using the fully qualified path if possible, though, unless there are exceptional circumstances.
Note that it is typically not very useful to run Clippy for a target with an operating system. In this case, it turned out to be useful, though. :D
91d6ffa to
87fc148
Compare
clippy::uninlined_format_args and small refactors
No description provided.