For better performance on multi-core processors, it's better to use physical cores.
Windows affinity, Physical cores
Windows enumerates cores differently than linux.
Cores 0,2
0x5
Cores 0,2,4
0x15
Cores 0,2,4,6
0x55
Cores 0,2,4,6,8
0x155
Cores 0,2,4,6,8,10
0x555
Cores 0,2,4,6,8,10,12
0x1555
Cores 0,2,4,6,8,10,12,14
0x5555
Cores 0,2,4,6,8,10,12,14,16
0x15555
Cores 0,2,4,6,8,10,12,14,16,18
0x55555
Cores 0,2,4,6,8,10,12,14,16,18,20
0x155555
Cores 0,2,4,6,8,10,12,14,16,18,20,22
0x555555
Cores 0,2,4,6,8,10,12,14,16,18,20,22,24
0x1555555
Cores 0,2,4,6,8,10,12,14,16,18,20,22,24,26
0x5555555
Cores 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28
0x15555555
Cores 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
0x55555555