Skip to content

Small mm adjustments - #2714

Open
zyuiop wants to merge 3 commits into
hermit-os:mainfrom
zyuiop:feat/mm-adjustments
Open

Small mm adjustments#2714
zyuiop wants to merge 3 commits into
hermit-os:mainfrom
zyuiop:feat/mm-adjustments

Conversation

@zyuiop

@zyuiop zyuiop commented Sep 10, 2026

Copy link
Copy Markdown
Contributor
  • Renames mm::map to mm::device_map, as it's only used for devices, and the current naming seems to imply a more general usecase
  • Makes a couple offset computation functions const to hopefully replace them with their values at compile time

@zyuiop
zyuiop force-pushed the feat/mm-adjustments branch from 567cb8f to cf621fd Compare September 10, 2026 16:41

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

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: cf621fd Previous: 2e23902 Performance Ratio
startup_benchmark Build Time 91.50 s 80.34 s 1.14
startup_benchmark File Size 0.79 MB 0.80 MB 0.99
Startup Time - 1 core 0.75 s (±0.02 s) 0.75 s (±0.02 s) 1.00
Startup Time - 2 cores 0.75 s (±0.02 s) 0.74 s (±0.02 s) 1.01
Startup Time - 4 cores 0.76 s (±0.03 s) 0.74 s (±0.02 s) 1.02
multithreaded_benchmark Build Time 87.54 s 82.11 s 1.07
multithreaded_benchmark File Size 0.87 MB 0.86 MB 1.02
Multithreaded Pi Efficiency - 2 Threads 91.55 % (±7.65 %) 85.89 % (±6.61 %) 1.07
Multithreaded Pi Efficiency - 4 Threads 45.00 % (±3.76 %) 43.43 % (±2.56 %) 1.04
Multithreaded Pi Efficiency - 8 Threads 25.90 % (±1.58 %) 25.76 % (±1.53 %) 1.01
micro_benchmarks Build Time 86.72 s 80.40 s 1.08
micro_benchmarks File Size 0.88 MB 0.86 MB 1.02
Scheduling time - 1 thread 67.03 ticks (±2.75 ticks) 62.65 ticks (±4.06 ticks) 1.07
Scheduling time - 2 threads 40.15 ticks (±6.34 ticks) 34.08 ticks (±4.10 ticks) 1.18
Micro - Time for syscall (getpid) 3.72 ticks (±0.66 ticks) 3.45 ticks (±0.58 ticks) 1.08
Memcpy speed - (built_in) block size 4096 77143.29 MByte/s (±53886.11 MByte/s) 82448.38 MByte/s (±56997.13 MByte/s) 0.94
Memcpy speed - (built_in) block size 1048576 29544.52 MByte/s (±24025.83 MByte/s) 30585.98 MByte/s (±24707.84 MByte/s) 0.97
Memcpy speed - (built_in) block size 16777216 28277.20 MByte/s (±23316.18 MByte/s) 26340.06 MByte/s (±21720.96 MByte/s) 1.07
Memset speed - (built_in) block size 4096 77190.37 MByte/s (±53917.38 MByte/s) 82292.76 MByte/s (±56891.50 MByte/s) 0.94
Memset speed - (built_in) block size 1048576 30277.05 MByte/s (±24442.78 MByte/s) 31323.85 MByte/s (±25145.86 MByte/s) 0.97
Memset speed - (built_in) block size 16777216 28983.08 MByte/s (±23708.54 MByte/s) 27104.68 MByte/s (±22209.94 MByte/s) 1.07
Memcpy speed - (rust) block size 4096 71215.02 MByte/s (±49793.13 MByte/s) 74097.96 MByte/s (±51811.44 MByte/s) 0.96
Memcpy speed - (rust) block size 1048576 29499.17 MByte/s (±24000.67 MByte/s) 30361.60 MByte/s (±24602.37 MByte/s) 0.97
Memcpy speed - (rust) block size 16777216 28294.72 MByte/s (±23326.41 MByte/s) 27625.34 MByte/s (±22806.88 MByte/s) 1.02
Memset speed - (rust) block size 4096 71873.05 MByte/s (±50254.42 MByte/s) 74373.47 MByte/s (±51976.48 MByte/s) 0.97
Memset speed - (rust) block size 1048576 30246.79 MByte/s (±24438.70 MByte/s) 31110.89 MByte/s (±25033.24 MByte/s) 0.97
Memset speed - (rust) block size 16777216 29024.45 MByte/s (±23741.96 MByte/s) 28386.93 MByte/s (±23265.03 MByte/s) 1.02
alloc_benchmarks Build Time 85.55 s 74.76 s 1.14
alloc_benchmarks File Size 0.87 MB 0.87 MB 1.00
Allocations - Allocation success 91.38 % 91.31 % 1.00
Allocations - Deallocation success 100.00 % 100.00 % 1
Allocations - Pre-fail Allocations 61.60 % 61.44 % 1.00
Allocations - Average Allocation time 10369.73 Ticks (±170.79 Ticks) 5860.58 Ticks (±98.43 Ticks) 1.77
Allocations - Average Allocation time (no fail) 10916.82 Ticks (±250.69 Ticks) 6554.81 Ticks (±92.86 Ticks) 1.67
Allocations - Average Deallocation time 2979.69 Ticks (±723.15 Ticks) 1805.01 Ticks (±250.35 Ticks) 1.65
mutex_benchmark Build Time 85.57 s 79.82 s 1.07
mutex_benchmark File Size 0.88 MB 0.86 MB 1.02
Mutex Stress Test Average Time per Iteration - 1 Threads 12.64 ns (±0.62 ns) 12.10 ns (±0.41 ns) 1.04
Mutex Stress Test Average Time per Iteration - 2 Threads 88.00 ns (±4.02 ns) 40.26 ns (±1.68 ns) 2.19

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant