Skip to content

Comments

experiment: style: format Cargo files#2274

Open
mkroening wants to merge 1 commit intomainfrom
cargo-cargofmt
Open

experiment: style: format Cargo files#2274
mkroening wants to merge 1 commit intomainfrom
cargo-cargofmt

Conversation

@mkroening
Copy link
Member

@mkroening mkroening commented Feb 20, 2026

This PR experiments with adopting cargo-cargofmt.

@mkroening mkroening self-assigned this Feb 20, 2026
Copy link
Contributor

@github-actions github-actions bot left a 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: 1789c51 Previous: 04ab3e2 Performance Ratio
startup_benchmark Build Time 98.95 s 98.87 s 1.00
startup_benchmark File Size 0.86 MB 0.86 MB 1.00
Startup Time - 1 core 0.95 s (±0.03 s) 0.95 s (±0.03 s) 1.00
Startup Time - 2 cores 0.94 s (±0.04 s) 0.97 s (±0.03 s) 0.98
Startup Time - 4 cores 0.94 s (±0.03 s) 0.96 s (±0.03 s) 0.97
multithreaded_benchmark Build Time 96.88 s 101.80 s 0.95
multithreaded_benchmark File Size 0.96 MB 0.96 MB 1.00
Multithreaded Pi Efficiency - 2 Threads 89.95 % (±7.28 %) 91.38 % (±7.84 %) 0.98
Multithreaded Pi Efficiency - 4 Threads 44.29 % (±2.70 %) 44.41 % (±3.31 %) 1.00
Multithreaded Pi Efficiency - 8 Threads 25.81 % (±1.71 %) 25.72 % (±1.88 %) 1.00
micro_benchmarks Build Time 105.39 s 112.45 s 0.94
micro_benchmarks File Size 0.96 MB 0.96 MB 1.00
Scheduling time - 1 thread 68.65 ticks (±3.55 ticks) 71.54 ticks (±3.61 ticks) 0.96
Scheduling time - 2 threads 37.48 ticks (±3.97 ticks) 39.74 ticks (±4.96 ticks) 0.94
Micro - Time for syscall (getpid) 2.94 ticks (±0.28 ticks) 3.06 ticks (±0.30 ticks) 0.96
Memcpy speed - (built_in) block size 4096 66467.85 MByte/s (±47504.17 MByte/s) 64053.45 MByte/s (±45682.00 MByte/s) 1.04
Memcpy speed - (built_in) block size 1048576 29611.11 MByte/s (±24438.11 MByte/s) 29971.18 MByte/s (±24961.55 MByte/s) 0.99
Memcpy speed - (built_in) block size 16777216 28359.17 MByte/s (±23635.89 MByte/s) 25003.45 MByte/s (±21013.82 MByte/s) 1.13
Memset speed - (built_in) block size 4096 67094.25 MByte/s (±47898.64 MByte/s) 64316.32 MByte/s (±45851.10 MByte/s) 1.04
Memset speed - (built_in) block size 1048576 30367.20 MByte/s (±24877.34 MByte/s) 30752.34 MByte/s (±25389.93 MByte/s) 0.99
Memset speed - (built_in) block size 16777216 29060.33 MByte/s (±24010.15 MByte/s) 25753.82 MByte/s (±21487.22 MByte/s) 1.13
Memcpy speed - (rust) block size 4096 60818.60 MByte/s (±44690.85 MByte/s) 59798.08 MByte/s (±44107.11 MByte/s) 1.02
Memcpy speed - (rust) block size 1048576 29478.09 MByte/s (±24376.06 MByte/s) 29689.71 MByte/s (±24867.97 MByte/s) 0.99
Memcpy speed - (rust) block size 16777216 28384.02 MByte/s (±23644.04 MByte/s) 24799.81 MByte/s (±20847.11 MByte/s) 1.14
Memset speed - (rust) block size 4096 61504.89 MByte/s (±45074.95 MByte/s) 60738.74 MByte/s (±44654.61 MByte/s) 1.01
Memset speed - (rust) block size 1048576 30281.38 MByte/s (±24830.08 MByte/s) 30493.17 MByte/s (±25306.10 MByte/s) 0.99
Memset speed - (rust) block size 16777216 29138.65 MByte/s (±24068.40 MByte/s) 25549.21 MByte/s (±21318.77 MByte/s) 1.14
alloc_benchmarks Build Time 103.67 s 103.81 s 1.00
alloc_benchmarks File Size 0.93 MB 0.93 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 11098.41 Ticks (±126.21 Ticks) 11018.15 Ticks (±189.29 Ticks) 1.01
Allocations - Average Allocation time (no fail) 11098.41 Ticks (±126.21 Ticks) 11018.15 Ticks (±189.29 Ticks) 1.01
Allocations - Average Deallocation time 1039.79 Ticks (±582.82 Ticks) 1054.71 Ticks (±332.39 Ticks) 0.99
mutex_benchmark Build Time 103.68 s 109.97 s 0.94
mutex_benchmark File Size 0.96 MB 0.96 MB 1.00
Mutex Stress Test Average Time per Iteration - 1 Threads 12.78 ns (±0.61 ns) 13.32 ns (±0.68 ns) 0.96
Mutex Stress Test Average Time per Iteration - 2 Threads 15.24 ns (±0.62 ns) 15.94 ns (±0.83 ns) 0.96

This comment was automatically generated by workflow using github-action-benchmark.

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