Skip to content

experiment: style: format Cargo files#2274

Open
mkroening wants to merge 2 commits intomainfrom
cargo-cargofmt
Open

experiment: style: format Cargo files#2274
mkroening wants to merge 2 commits 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

@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: 4484f3c Previous: 3ac3315 Performance Ratio
startup_benchmark Build Time 87.27 s 89.27 s 0.98
startup_benchmark File Size 0.75 MB 0.75 MB 1.00
Startup Time - 1 core 0.93 s (±0.04 s) 0.94 s (±0.03 s) 0.99
Startup Time - 2 cores 0.94 s (±0.04 s) 0.95 s (±0.04 s) 0.99
Startup Time - 4 cores 0.96 s (±0.03 s) 0.94 s (±0.04 s) 1.02
multithreaded_benchmark Build Time 85.38 s 90.01 s 0.95
multithreaded_benchmark File Size 0.86 MB 0.86 MB 1.00
Multithreaded Pi Efficiency - 2 Threads 88.03 % (±7.76 %) 87.64 % (±8.51 %) 1.00
Multithreaded Pi Efficiency - 4 Threads 44.14 % (±2.58 %) 44.09 % (±3.51 %) 1.00
Multithreaded Pi Efficiency - 8 Threads 25.39 % (±2.31 %) 25.59 % (±2.01 %) 0.99
micro_benchmarks Build Time 92.58 s 101.16 s 0.92
micro_benchmarks File Size 0.86 MB 0.86 MB 1.00
Scheduling time - 1 thread 64.86 ticks (±3.47 ticks) 67.87 ticks (±3.85 ticks) 0.96
Scheduling time - 2 threads 35.40 ticks (±3.49 ticks) 36.50 ticks (±3.51 ticks) 0.97
Micro - Time for syscall (getpid) 2.90 ticks (±0.26 ticks) 3.01 ticks (±0.28 ticks) 0.96
Memcpy speed - (built_in) block size 4096 67964.23 MByte/s (±48835.57 MByte/s) 63042.69 MByte/s (±45031.72 MByte/s) 1.08
Memcpy speed - (built_in) block size 1048576 29968.26 MByte/s (±24736.73 MByte/s) 29485.06 MByte/s (±24652.84 MByte/s) 1.02
Memcpy speed - (built_in) block size 16777216 28601.75 MByte/s (±23843.03 MByte/s) 24243.73 MByte/s (±20316.34 MByte/s) 1.18
Memset speed - (built_in) block size 4096 68690.33 MByte/s (±49354.18 MByte/s) 63340.46 MByte/s (±45234.84 MByte/s) 1.08
Memset speed - (built_in) block size 1048576 30741.60 MByte/s (±25170.84 MByte/s) 30262.35 MByte/s (±25094.12 MByte/s) 1.02
Memset speed - (built_in) block size 16777216 29364.76 MByte/s (±24269.59 MByte/s) 25000.39 MByte/s (±20810.68 MByte/s) 1.17
Memcpy speed - (rust) block size 4096 61525.34 MByte/s (±45381.50 MByte/s) 57707.44 MByte/s (±42356.96 MByte/s) 1.07
Memcpy speed - (rust) block size 1048576 29704.36 MByte/s (±24572.74 MByte/s) 29531.70 MByte/s (±24724.94 MByte/s) 1.01
Memcpy speed - (rust) block size 16777216 28575.85 MByte/s (±23819.82 MByte/s) 23609.81 MByte/s (±19627.11 MByte/s) 1.21
Memset speed - (rust) block size 4096 62602.26 MByte/s (±46092.82 MByte/s) 58813.21 MByte/s (±43151.54 MByte/s) 1.06
Memset speed - (rust) block size 1048576 30461.43 MByte/s (±24995.07 MByte/s) 30349.84 MByte/s (±25196.60 MByte/s) 1.00
Memset speed - (rust) block size 16777216 29336.78 MByte/s (±24241.75 MByte/s) 24408.86 MByte/s (±20187.08 MByte/s) 1.20
alloc_benchmarks Build Time 90.94 s 91.28 s 1.00
alloc_benchmarks File Size 0.82 MB 0.82 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 13344.30 Ticks (±236.95 Ticks) 8755.83 Ticks (±1298.90 Ticks) 1.52
Allocations - Average Allocation time (no fail) 13344.30 Ticks (±236.95 Ticks) 8755.83 Ticks (±1298.90 Ticks) 1.52
Allocations - Average Deallocation time 1424.20 Ticks (±1150.04 Ticks) 3030.46 Ticks (±622.25 Ticks) 0.47
mutex_benchmark Build Time 92.07 s 98.19 s 0.94
mutex_benchmark File Size 0.86 MB 0.86 MB 1.00
Mutex Stress Test Average Time per Iteration - 1 Threads 13.12 ns (±0.68 ns) 12.98 ns (±0.76 ns) 1.01
Mutex Stress Test Average Time per Iteration - 2 Threads 23.36 ns (±16.83 ns) 18.68 ns (±9.78 ns) 1.25

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