RDRAND (R32) - Throughput and Uops
With 1 independent instruction
With unroll_count=10 and no inner loop
Code:
0: 41 0f c7 f0 rdrand r8d
Show nanoBench command
Results:
Instructions retired: 1.0
Core cycles: 1841.47
Reference cycles: 1153.1
UOPS_EXECUTED.THREAD: 21.0
RETIRE_SLOTS: 24.0
UOPS_MITE: 0.0
UOPS_MS: 21.07
UOPS_PORT_0: 5.0
UOPS_PORT_1: 7.4
UOPS_PORT_6: 6.6
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 3.2
UOPS_PORT_5B>=2: 0.0
UOPS_PORT_23A: 1.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.0
With unroll_count=10, no inner loop, and 1 NOP
Code:
0: 41 0f c7 f0 rdrand r8d 4: 90 nop
Show nanoBench command
Results:
Instructions retired: 2.0
Core cycles: 1842.2
Reference cycles: 1151.8
UOPS_EXECUTED.THREAD: 21.0
RETIRE_SLOTS: 25.0
UOPS_MITE: 1.0
UOPS_MS: 21.4
UOPS_PORT_0: 3.2
UOPS_PORT_1: 9.2
UOPS_PORT_6: 5.7
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 4.1
UOPS_PORT_5B>=2: 0.8
UOPS_PORT_23A: 1.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 1.0
With loop_count=10 and unroll_count=1
Code:
0: 41 0f c7 f0 rdrand r8d
Show nanoBench command
Results:
Instructions retired: 3.0
Core cycles: 1841.98
Reference cycles: 1153.1
UOPS_EXECUTED.THREAD: 21.8
RETIRE_SLOTS: 27.03
UOPS_MITE: 0.6
UOPS_MS: 14.4
UOPS_PORT_0: 4.1
UOPS_PORT_1: 8.57
UOPS_PORT_6: 5.8
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 5.17
UOPS_PORT_5B>=2: 0.8
UOPS_PORT_23A: 1.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.52