Skip to content

Use Thread.GetCurrentProcessorId as Counter bucket index - #820

Open
bitfaster wants to merge 2 commits into
mainfrom
users/alexpeck/procid
Open

Use Thread.GetCurrentProcessorId as Counter bucket index#820
bitfaster wants to merge 2 commits into
mainfrom
users/alexpeck/procid

Conversation

@bitfaster

@bitfaster bitfaster commented Aug 26, 2026

Copy link
Copy Markdown
Owner
BenchmarkDotNet v0.15.8, Windows 11 (10.0.26200.9106/25H2/2025Update/HudsonValley2)
Intel Xeon W-2133 CPU 3.60GHz, 1 CPU, 12 logical and 6 physical cores
.NET SDK 10.0.400
  [Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v4
  net9.0 : .NET 9.0.19 (9.0.19, 9.0.1926.36724), X64 RyuJIT x86-64-v4

Job=net9.0  Runtime=.NET 9.0
Method Mean Error StdDev
ThreadIdSerial 19.973 ms 0.0555 ms 0.0492 ms
ThreadIdParallel 2.190 ms 0.0231 ms 0.0205 ms
ProcIdSerial 19.986 ms 0.0655 ms 0.0612 ms
ProcIdParallel 4.786 ms 0.0789 ms 0.0699 ms

Via benchmark from PR #819

@bitfaster bitfaster changed the title Use proc id as thread probe Use proc id as counter bucket index Aug 26, 2026
@bitfaster bitfaster changed the title Use proc id as counter bucket index Use Thread.GetCurrentProcessorId as Counter bucket index Aug 26, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 99.212%. remained the same — users/alexpeck/procid into main

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