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: 113.63
Reference cycles: 65.33
UOPS_EXECUTED.THREAD: 21.0
RETIRE_SLOTS: 24.0
UOPS_MITE: 0.4
UOPS_MS: 23.92
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.08
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: 116.37
Reference cycles: 66.67
UOPS_EXECUTED.THREAD: 21.0
RETIRE_SLOTS: 25.0
UOPS_MITE: 1.53
UOPS_MS: 24.0
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.1
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: 118.12
Reference cycles: 68.0
UOPS_EXECUTED.THREAD: 22.4
RETIRE_SLOTS: 26.07
UOPS_MITE: 1.13
UOPS_MS: 17.6
UOPS_PORT_0: 4.1
UOPS_PORT_1: 8.13
UOPS_PORT_6: 5.8
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 4.63
UOPS_PORT_5B>=2: 0.8
UOPS_PORT_23A: 1.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.83