ADD (AL, I8) - Throughput and Uops
With unroll_count=500 and no inner loop
Code:
0: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.84
APERF: 1.0
UOPS: 1.0
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
FpuPipeAssignment.Total4: 0.0
FpuPipeAssignment.Total5: 0.0
DIV_CYCLES: 0.0
With loop_count=1000 and unroll_count=10
Code:
0: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.8
APERF: 1.0
UOPS: 1.1
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
FpuPipeAssignment.Total4: 0.0
FpuPipeAssignment.Total5: 0.0
DIV_CYCLES: 0.0
With loop_count=100 and unroll_count=100
Code:
0: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.8
APERF: 1.0
UOPS: 1.01
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
FpuPipeAssignment.Total4: 0.0
FpuPipeAssignment.Total5: 0.0
DIV_CYCLES: 0.0
With additional dependency-breaking instructions
With unroll_count=500 and no inner loop
Code:
0: 48 31 c0 xor rax,rax 3: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.37
APERF: 0.5
UOPS: 2.0
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
FpuPipeAssignment.Total4: 0.0
FpuPipeAssignment.Total5: 0.0
DIV_CYCLES: 0.0
With loop_count=1000 and unroll_count=10
Code:
0: 48 31 c0 xor rax,rax 3: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.28
APERF: 0.35
UOPS: 2.1
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
FpuPipeAssignment.Total4: 0.0
FpuPipeAssignment.Total5: 0.0
DIV_CYCLES: 0.0
With loop_count=100 and unroll_count=100
Code:
0: 48 31 c0 xor rax,rax 3: 04 02 add al,0x2
Show nanoBench command
Results:
MPERF: 0.27
APERF: 0.34
UOPS: 2.01
FpuPipeAssignment.Total0: 0.0
FpuPipeAssignment.Total1: 0.0
FpuPipeAssignment.Total2: 0.0
FpuPipeAssignment.Total3: 0.0
FpuPipeAssignment.Total4: 0.0
FpuPipeAssignment.Total5: 0.0
DIV_CYCLES: 0.0