Skip to content

Comments

refactor: migrate from cfg_if to cfg_select#2276

Open
mkroening wants to merge 1 commit intomainfrom
cfg_select
Open

refactor: migrate from cfg_if to cfg_select#2276
mkroening wants to merge 1 commit intomainfrom
cfg_select

Conversation

@mkroening
Copy link
Member

This has been stabilized today. Preferably, we wait until next month's toolchain bump to avoid having to use additional nightly feature.

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: 5aaf62d Previous: fc3e2ac Performance Ratio
startup_benchmark Build Time 102.17 s 99.54 s 1.03
startup_benchmark File Size 0.86 MB 0.86 MB 1.00
Startup Time - 1 core 0.95 s (±0.03 s) 0.96 s (±0.03 s) 0.98
Startup Time - 2 cores 0.95 s (±0.03 s) 0.95 s (±0.03 s) 0.99
Startup Time - 4 cores 0.97 s (±0.03 s) 0.96 s (±0.04 s) 1.01
multithreaded_benchmark Build Time 101.42 s 101.96 s 0.99
multithreaded_benchmark File Size 0.96 MB 0.96 MB 1.00
Multithreaded Pi Efficiency - 2 Threads 88.41 % (±9.82 %) 88.91 % (±6.90 %) 0.99
Multithreaded Pi Efficiency - 4 Threads 44.06 % (±3.69 %) 43.72 % (±3.35 %) 1.01
Multithreaded Pi Efficiency - 8 Threads 25.19 % (±2.57 %) 25.20 % (±1.51 %) 1.00
micro_benchmarks Build Time 109.05 s 113.88 s 0.96
micro_benchmarks File Size 0.96 MB 0.96 MB 1.00
Scheduling time - 1 thread 70.85 ticks (±2.99 ticks) 70.93 ticks (±3.26 ticks) 1.00
Scheduling time - 2 threads 39.15 ticks (±4.74 ticks) 38.09 ticks (±3.79 ticks) 1.03
Micro - Time for syscall (getpid) 3.01 ticks (±0.30 ticks) 3.13 ticks (±0.31 ticks) 0.96
Memcpy speed - (built_in) block size 4096 63289.39 MByte/s (±45189.22 MByte/s) 60295.97 MByte/s (±43022.22 MByte/s) 1.05
Memcpy speed - (built_in) block size 1048576 30274.05 MByte/s (±25262.57 MByte/s) 29873.63 MByte/s (±24897.28 MByte/s) 1.01
Memcpy speed - (built_in) block size 16777216 23434.82 MByte/s (±19740.87 MByte/s) 24109.35 MByte/s (±20165.58 MByte/s) 0.97
Memset speed - (built_in) block size 4096 63614.39 MByte/s (±45350.93 MByte/s) 60712.25 MByte/s (±43334.37 MByte/s) 1.05
Memset speed - (built_in) block size 1048576 31154.17 MByte/s (±25760.15 MByte/s) 30665.18 MByte/s (±25340.82 MByte/s) 1.02
Memset speed - (built_in) block size 16777216 23809.47 MByte/s (±19898.79 MByte/s) 24868.85 MByte/s (±20665.55 MByte/s) 0.96
Memcpy speed - (rust) block size 4096 58816.49 MByte/s (±43105.94 MByte/s) 56536.34 MByte/s (±41469.00 MByte/s) 1.04
Memcpy speed - (rust) block size 1048576 30151.62 MByte/s (±25239.48 MByte/s) 30198.35 MByte/s (±25196.73 MByte/s) 1.00
Memcpy speed - (rust) block size 16777216 23031.36 MByte/s (±19335.66 MByte/s) 22824.74 MByte/s (±19203.61 MByte/s) 1.01
Memset speed - (rust) block size 4096 59506.55 MByte/s (±43559.50 MByte/s) 57438.67 MByte/s (±42040.41 MByte/s) 1.04
Memset speed - (rust) block size 1048576 31024.97 MByte/s (±25737.46 MByte/s) 30991.61 MByte/s (±25630.87 MByte/s) 1.00
Memset speed - (rust) block size 16777216 23237.59 MByte/s (±19402.87 MByte/s) 23586.29 MByte/s (±19734.78 MByte/s) 0.99
alloc_benchmarks Build Time 107.37 s 109.38 s 0.98
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 11283.13 Ticks (±201.81 Ticks) 10913.30 Ticks (±191.30 Ticks) 1.03
Allocations - Average Allocation time (no fail) 11283.13 Ticks (±201.81 Ticks) 10913.30 Ticks (±191.30 Ticks) 1.03
Allocations - Average Deallocation time 1138.37 Ticks (±606.61 Ticks) 1204.52 Ticks (±925.85 Ticks) 0.95
mutex_benchmark Build Time 106.26 s 110.83 s 0.96
mutex_benchmark File Size 0.96 MB 0.96 MB 1.00
Mutex Stress Test Average Time per Iteration - 1 Threads 13.00 ns (±0.82 ns) 13.44 ns (±0.64 ns) 0.97
Mutex Stress Test Average Time per Iteration - 2 Threads 15.56 ns (±0.73 ns) 16.30 ns (±0.88 ns) 0.95

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