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: 573.93
Reference cycles: 455.03
UOPS_EXECUTED.THREAD: 16.0
RETIRE_SLOTS: 16.0
UOPS_MITE: 0.0
UOPS_MS: 16.0
UOPS_PORT_0: 4.0
UOPS_PORT_1: 3.1
UOPS_PORT_2: 0.5
UOPS_PORT_3: 0.5
UOPS_PORT_4: 0.0
UOPS_PORT_5: 1.8
UOPS_PORT_6: 6.1
UOPS_PORT_7: 0.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: 574.23
Reference cycles: 457.47
UOPS_EXECUTED.THREAD: 16.0
RETIRE_SLOTS: 17.0
UOPS_MITE: 1.0
UOPS_MS: 16.0
UOPS_PORT_0: 3.8
UOPS_PORT_1: 3.2
UOPS_PORT_2: 0.5
UOPS_PORT_3: 0.5
UOPS_PORT_4: 0.0
UOPS_PORT_5: 1.6
UOPS_PORT_6: 6.4
UOPS_PORT_7: 0.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: 574.1
Reference cycles: 452.6
UOPS_EXECUTED.THREAD: 17.0
RETIRE_SLOTS: 18.07
UOPS_MITE: 0.73
UOPS_MS: 16.0
UOPS_PORT_0: 3.97
UOPS_PORT_1: 3.23
UOPS_PORT_2: 0.5
UOPS_PORT_3: 0.5
UOPS_PORT_4: 0.0
UOPS_PORT_5: 1.63
UOPS_PORT_6: 7.17
UOPS_PORT_7: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.73