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: 33.0
Reference cycles: 24.86
UOPS_EXECUTED.THREAD: 20.0
RETIRE_SLOTS: 23.0
UOPS_MITE: 2.0
UOPS_MS: 21.0
UOPS_PORT_0: 3.0
UOPS_PORT_1: 6.0
UOPS_PORT_6: 7.0
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 4.0
UOPS_PORT_5B>=2: 0.0
UOPS_PORT_23A: 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: 33.5
Reference cycles: 25.28
UOPS_EXECUTED.THREAD: 20.0
RETIRE_SLOTS: 24.0
UOPS_MITE: 3.0
UOPS_MS: 21.0
UOPS_PORT_0: 3.0
UOPS_PORT_1: 5.0
UOPS_PORT_6: 7.0
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 5.0
UOPS_PORT_5B>=2: 0.0
UOPS_PORT_23A: 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: 33.1
Reference cycles: 24.91
UOPS_EXECUTED.THREAD: 20.1
RETIRE_SLOTS: 23.1
UOPS_MITE: 2.1
UOPS_MS: 21.01
UOPS_PORT_0: 3.0
UOPS_PORT_1: 6.1
UOPS_PORT_6: 7.1
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 3.9
UOPS_PORT_5B>=2: 0.0
UOPS_PORT_23A: 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: 33.01
Reference cycles: 24.84
UOPS_EXECUTED.THREAD: 20.01
RETIRE_SLOTS: 23.01
UOPS_MITE: 2.01
UOPS_MS: 21.0
UOPS_PORT_0: 3.0
UOPS_PORT_1: 6.01
UOPS_PORT_6: 7.01
UOPS_PORT_49: 0.0
UOPS_PORT_78: 0.0
UOPS_PORT_5B: 3.99
UOPS_PORT_5B>=2: 0.0
UOPS_PORT_23A: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 1.01