CMP (R64, I32) - Throughput and Uops
With unroll_count=500 and no inner loop
Code:
0: 49 81 f8 00 00 00 01 cmp r8,0x1000000
Show nanoBench command
Results:
Instructions retired: 1.0
Core cycles: 0.44
Reference cycles: 0.44
RS_UOPS_DISPATCHED: 1.0
UOPS_PORT_0: 0.31
UOPS_PORT_1: 0.31
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 0.0
UOPS_PORT_5: 0.38
With loop_count=1000 and unroll_count=10
Code:
0: 49 81 f8 00 00 00 01 cmp r8,0x1000000
Show nanoBench command
Results:
Instructions retired: 1.2
Core cycles: 0.5
Reference cycles: 0.5
RS_UOPS_DISPATCHED: 1.2
UOPS_PORT_0: 0.4
UOPS_PORT_1: 0.4
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 0.0
UOPS_PORT_5: 0.4
With loop_count=100 and unroll_count=100
Code:
0: 49 81 f8 00 00 00 01 cmp r8,0x1000000
Show nanoBench command
Results:
Instructions retired: 1.02
Core cycles: 0.45
Reference cycles: 0.45
RS_UOPS_DISPATCHED: 1.02
UOPS_PORT_0: 0.32
UOPS_PORT_1: 0.33
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 0.0
UOPS_PORT_5: 0.37