RDTSCP - Throughput and Uops
With unroll_count=500 and no inner loop
Code:
0: 0f 01 f9 rdtscp
Show nanoBench command
Results:
Instructions retired: 1.0
Core cycles: 32.0
Reference cycles: 22.08
UOPS_EXECUTED.THREAD: 16.0
RETIRE_SLOTS: 18.0
UOPS_MITE: 4.0
UOPS_MS: 14.0
UOPS_PORT_0: 2.5
UOPS_PORT_1: 6.0
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 0.0
UOPS_PORT_5: 3.5
UOPS_PORT_6: 4.0
UOPS_PORT_7: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 1.0
With unroll_count=500, no inner loop, and 1 NOP
Code:
0: 0f 01 f9 rdtscp 3: 90 nop
Show nanoBench command
Results:
Instructions retired: 2.0
Core cycles: 32.25
Reference cycles: 22.26
UOPS_EXECUTED.THREAD: 16.0
RETIRE_SLOTS: 19.0
UOPS_MITE: 5.0
UOPS_MS: 14.0
UOPS_PORT_0: 3.25
UOPS_PORT_1: 5.5
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 0.0
UOPS_PORT_5: 3.5
UOPS_PORT_6: 3.75
UOPS_PORT_7: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 2.0
With loop_count=1000 and unroll_count=10
Code:
0: 0f 01 f9 rdtscp
Show nanoBench command
Results:
Instructions retired: 1.2
Core cycles: 32.3
Reference cycles: 22.34
UOPS_EXECUTED.THREAD: 16.1
RETIRE_SLOTS: 18.1
UOPS_MITE: 4.1
UOPS_MS: 14.0
UOPS_PORT_0: 3.05
UOPS_PORT_1: 5.7
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 0.0
UOPS_PORT_5: 3.53
UOPS_PORT_6: 3.82
UOPS_PORT_7: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 1.1
With loop_count=100 and unroll_count=100
Code:
0: 0f 01 f9 rdtscp
Show nanoBench command
Results:
Instructions retired: 1.02
Core cycles: 32.25
Reference cycles: 22.31
UOPS_EXECUTED.THREAD: 16.01
RETIRE_SLOTS: 18.01
UOPS_MITE: 4.01
UOPS_MS: 14.0
UOPS_PORT_0: 3.0
UOPS_PORT_1: 5.75
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 0.0
UOPS_PORT_5: 3.5
UOPS_PORT_6: 3.76
UOPS_PORT_7: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 1.01