Skip to content

perf(tcp): optimize active socket search#2435

Open
cagatay-y wants to merge 1 commit into
hermit-os:mainfrom
cagatay-y:perf-tcp-socket-search
Open

perf(tcp): optimize active socket search#2435
cagatay-y wants to merge 1 commit into
hermit-os:mainfrom
cagatay-y:perf-tcp-socket-search

Conversation

@cagatay-y
Copy link
Copy Markdown
Contributor

Increases iperf performance by ~15% in a non-scientific test.

Increases iperf performance by ~15% in a non-scientific test.
Copy link
Copy Markdown

@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: 72fbf87 Previous: 1995748 Performance Ratio
startup_benchmark Build Time 99.92 s 97.26 s 1.03
startup_benchmark File Size 0.76 MB 0.76 MB 1.00
Startup Time - 1 core 0.80 s (±0.03 s) 0.81 s (±0.03 s) 0.99
Startup Time - 2 cores 0.82 s (±0.03 s) 0.81 s (±0.02 s) 1.01
Startup Time - 4 cores 0.81 s (±0.03 s) 0.82 s (±0.03 s) 0.99
multithreaded_benchmark Build Time 102.45 s 101.76 s 1.01
multithreaded_benchmark File Size 0.86 MB 0.86 MB 1.00
Multithreaded Pi Efficiency - 2 Threads 66.09 % (±6.87 %) 66.91 % (±7.02 %) 0.99
Multithreaded Pi Efficiency - 4 Threads 42.05 % (±3.26 %) 41.78 % (±2.62 %) 1.01
Multithreaded Pi Efficiency - 8 Threads 19.31 % (±1.73 %) 20.03 % (±2.04 %) 0.96
micro_benchmarks Build Time 99.61 s 96.47 s 1.03
micro_benchmarks File Size 0.87 MB 0.87 MB 1.00
Scheduling time - 1 thread 70.50 ticks (±3.55 ticks) 71.35 ticks (±4.29 ticks) 0.99
Scheduling time - 2 threads 38.61 ticks (±3.90 ticks) 38.27 ticks (±4.80 ticks) 1.01
Micro - Time for syscall (getpid) 2.90 ticks (±0.25 ticks) 3.03 ticks (±0.33 ticks) 0.96
Memcpy speed - (built_in) block size 4096 76992.49 MByte/s (±53426.99 MByte/s) 75669.65 MByte/s (±52736.93 MByte/s) 1.02
Memcpy speed - (built_in) block size 1048576 29821.88 MByte/s (±24421.47 MByte/s) 29477.05 MByte/s (±24090.25 MByte/s) 1.01
Memcpy speed - (built_in) block size 16777216 24442.06 MByte/s (±20245.83 MByte/s) 25344.40 MByte/s (±21045.29 MByte/s) 0.96
Memset speed - (built_in) block size 4096 77333.46 MByte/s (±53616.13 MByte/s) 76041.75 MByte/s (±53007.66 MByte/s) 1.02
Memset speed - (built_in) block size 1048576 30557.69 MByte/s (±24844.41 MByte/s) 30224.16 MByte/s (±24517.62 MByte/s) 1.01
Memset speed - (built_in) block size 16777216 25166.23 MByte/s (±20721.63 MByte/s) 26091.14 MByte/s (±21520.38 MByte/s) 0.96
Memcpy speed - (rust) block size 4096 70341.92 MByte/s (±49233.35 MByte/s) 67847.73 MByte/s (±47702.41 MByte/s) 1.04
Memcpy speed - (rust) block size 1048576 29668.34 MByte/s (±24316.64 MByte/s) 29495.89 MByte/s (±24231.07 MByte/s) 1.01
Memcpy speed - (rust) block size 16777216 25102.74 MByte/s (±20699.92 MByte/s) 25761.59 MByte/s (±21357.10 MByte/s) 0.97
Memset speed - (rust) block size 4096 70821.57 MByte/s (±49602.72 MByte/s) 68063.04 MByte/s (±47855.91 MByte/s) 1.04
Memset speed - (rust) block size 1048576 30426.44 MByte/s (±24760.98 MByte/s) 30241.00 MByte/s (±24653.82 MByte/s) 1.01
Memset speed - (rust) block size 16777216 25850.88 MByte/s (±21191.50 MByte/s) 26436.66 MByte/s (±21756.66 MByte/s) 0.98
alloc_benchmarks Build Time 92.03 s 89.87 s 1.02
alloc_benchmarks File Size 0.84 MB 0.84 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 9195.76 Ticks (±415.82 Ticks) 8684.14 Ticks (±133.75 Ticks) 1.06
Allocations - Average Allocation time (no fail) 9195.76 Ticks (±415.82 Ticks) 8684.14 Ticks (±133.75 Ticks) 1.06
Allocations - Average Deallocation time 1285.23 Ticks (±458.27 Ticks) 776.46 Ticks (±122.30 Ticks) 1.66
mutex_benchmark Build Time 91.83 s 90.28 s 1.02
mutex_benchmark File Size 0.87 MB 0.87 MB 1.00
Mutex Stress Test Average Time per Iteration - 1 Threads 13.20 ns (±0.63 ns) 13.08 ns (±0.98 ns) 1.01
Mutex Stress Test Average Time per Iteration - 2 Threads 17.36 ns (±9.94 ns) 16.84 ns (±8.53 ns) 1.03

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

@mkroening mkroening self-assigned this May 18, 2026
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.

2 participants