RDTSC
Summary:
"Read Time-Stamp Counter"
Reference:
https://www.felixcloutier.com/x86/RDTSC.html
Extension:
BASE
Category:
SYSTEM
ISA-Set:
PENTIUMREAL
CPL:
3
iform:
RDTSC
iclass:
RDTSC
ASM:
RDTSC
Operands
Operand 1 (w, suppressed): Register (EAX)
Operand 2 (w, suppressed): Register (EDX)
Operand 3 (r, suppressed): Register (TSC)
Available performance data
Alder Lake-P
Alder Lake-E
Rocket Lake
Tiger Lake
Ice Lake
Cascade Lake
Cannon Lake
Skylake-X
Coffee Lake
Kaby Lake
Skylake
Broadwell
Haswell
Ivy Bridge
Sandy Bridge
Westmere
Nehalem
Wolfdale
Conroe
Tremont
Goldmont Plus
Goldmont
Airmont
Bonnell
AMD Zen 4
AMD Zen 3
AMD Zen 2
AMD Zen+
Alder Lake-P
Measurements
Throughput
Computed from the port usage: 3.00
Measured (loop):
26.00
Measured (unrolled):
26.00
Number of μops
Executed: 15
Retire slots: 18
Decoded (MITE): 2
Microcode Sequencer (MS): 16
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
5*p0156B+6*p06+3*p1+1*p5
Alder Lake-E
Measurements
Throughput
Measured (loop):
28.00
Measured (unrolled):
28.00
Number of μops
Executed: 15
Microcode Sequencer (MS): 14
Requires the complex decoder
Rocket Lake
Measurements
Throughput
Computed from the port usage: 3.75
Measured (loop):
27.00
Measured (unrolled):
27.00
Number of μops
Executed: 15
Retire slots: 18
Decoded (MITE): 2
Microcode Sequencer (MS): 16
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
3*p015+2*p0156+6*p06+3*p1+1*p5
Tiger Lake
Measurements
Throughput
Computed from the port usage: 3.75
Measured (loop):
27.00
Measured (unrolled):
27.00
Number of μops
Executed: 15
Retire slots: 18
Decoded (MITE): 2
Microcode Sequencer (MS): 16
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
3*p015+2*p0156+6*p06+3*p1+1*p5
Ice Lake
Measurements
Throughput
Computed from the port usage: 3.75
Measured (loop):
27.00
Measured (unrolled):
27.00
Number of μops
Executed: 15
Retire slots: 18
Decoded (MITE): 2
Microcode Sequencer (MS): 16
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
3*p015+2*p0156+6*p06+3*p1+1*p5
Cascade Lake
Measurements
Throughput
Computed from the port usage: 4.50
Measured (loop):
25.00
Measured (unrolled):
25.00
Number of μops
Executed: 18
Retire slots: 18
Decoded (MITE): 0
Microcode Sequencer (MS): 18
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+5*p0156+7*p06+3*p1+1*p15+1*p5
Cannon Lake
Measurements
Throughput
Computed from the port usage: 3.50
Measured (loop):
25.00
Measured (unrolled):
25.00
Number of μops
Executed: 14
Retire slots: 16
Decoded (MITE): 4
Microcode Sequencer (MS): 12
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
6*p0156+3*p06+3*p1+1*p15+1*p5
Skylake-X
Measurements
Throughput
Computed from the port usage: 4.50
Measured (loop):
25.00
Measured (unrolled):
25.00
Number of μops
Executed: 18
Retire slots: 18
Decoded (MITE): 0
Microcode Sequencer (MS): 18
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
3*p015+4*p0156+7*p06+3*p1+1*p5
IACA 2.3
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
IACA 3.0
Throughput
Computed from the port usage: 2.00
IACA:
1.92
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
Coffee Lake
Measurements
Throughput
Computed from the port usage: 4.50
Measured (loop):
25.00
Measured (unrolled):
25.00
Number of μops
Executed: 18
Retire slots: 18
Decoded (MITE): 0
Microcode Sequencer (MS): 18
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
2*p015+4*p0156+7*p06+3*p1+1*p15+1*p5
Kaby Lake
Measurements
Throughput
Computed from the port usage: 4.50
Measured (loop):
25.00
Measured (unrolled):
25.00
Number of μops
Executed: 18
Retire slots: 18
Decoded (MITE): 0
Microcode Sequencer (MS): 18
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
2*p015+4*p0156+7*p06+3*p1+1*p15+1*p5
Skylake
Measurements
Throughput
Computed from the port usage: 4.50
Measured (loop):
25.00
Measured (unrolled):
25.00
Number of μops
Executed: 18
Retire slots: 18
Decoded (MITE): 0
Microcode Sequencer (MS): 18
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
2*p015+4*p0156+7*p06+3*p1+1*p15+1*p5
IACA 2.3
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
IACA 3.0
Throughput
Computed from the port usage: 2.00
IACA:
1.92
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
Broadwell
Measurements
Throughput
Computed from the port usage: 3.25
Measured (loop):
24.00
Measured (unrolled):
24.00
Number of μops
Executed: 13
Retire slots: 13
Decoded (MITE): 0
Microcode Sequencer (MS): 13
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
4*p0156+6*p06+2*p1+1*p5
IACA 2.2
Throughput
Computed from the port usage: 2.00
IACA:
2.00 (with the -no_interiteration flag: 2.00)
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
IACA 2.3
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
IACA 3.0
Throughput
Computed from the port usage: 2.00
IACA:
1.92
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
Haswell
Measurements
Throughput
Computed from the port usage: 3.25
Measured (loop):
24.00
Measured (unrolled):
24.00
Number of μops
Executed: 13
Retire slots: 13
Decoded (MITE): 0
Microcode Sequencer (MS): 13
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
1*p015+3*p0156+6*p06+2*p1+1*p5
IACA 2.2
Throughput
Computed from the port usage: 2.00
IACA:
2.00 (with the -no_interiteration flag: 2.00)
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
IACA 2.3
Throughput
Computed from the port usage: 2.00
IACA:
2.00
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
IACA 3.0
Throughput
Computed from the port usage: 2.00
IACA:
1.92
Number of μops:
8
Port usage:
5*p0156+2*p06+1*p5
Ivy Bridge
Measurements
Throughput
Computed from the port usage: 7.00
Measured (loop):
27.00
Measured (unrolled):
27.00
Number of μops
Executed: 21
Retire slots: 21
Decoded (MITE): 0
Microcode Sequencer (MS): 21
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
10*p015+1*p05+3*p1+1*p15+6*p5
Sandy Bridge
Measurements
Throughput
Computed from the port usage: 7.00
Measured (loop):
28.00
Measured (unrolled):
28.00
Number of μops
Executed: 21
Retire slots: 21
Decoded (MITE): 0
Microcode Sequencer (MS): 21
Requires the complex decoder (no other instruction can be decoded with simple decoders in the same cycle)
Port usage:
10*p015+1*p05+3*p1+1*p15+6*p5
Westmere
Measurements
Throughput
Computed from the port usage: 7.00
Measured (loop):
24.00
Measured (unrolled):
24.00
Number of μops
Executed: 21
Retire slots: 21
Microcode Sequencer (MS): 51
Requires the complex decoder
Port usage:
1*p0+12*p015+3*p05+3*p1+2*p5
Nehalem
Measurements
Throughput
Computed from the port usage: 7.33
Measured (loop):
24.00
Measured (unrolled):
24.00
Number of μops
Executed: 22
Retire slots: 22
Microcode Sequencer (MS): 56
Requires the complex decoder
Port usage:
1*p0+13*p015+3*p05+3*p1+2*p5
Wolfdale
Measurements
Throughput
Computed from the port usage: 7.00
Measured (loop):
32.00
Measured (unrolled):
32.00
Number of μops
Executed: 13
Port usage:
3*p0+1*p015+2*p1+7*p5
Conroe
Measurements
Throughput
Computed from the port usage: 12.00
Measured (loop):
64.00
Measured (unrolled):
64.00
Number of μops
Executed: 28
Port usage:
6*p0+4*p015+2*p05+4*p1+12*p5
Tremont
Measurements
Throughput
Measured (loop):
23.00
Measured (unrolled):
23.00
Number of μops
Executed: 20
Microcode Sequencer (MS): 20
Requires the complex decoder
Goldmont Plus
Measurements
Throughput
Measured (loop):
20.00
Measured (unrolled):
20.00
Number of μops
Executed: 19
Microcode Sequencer (MS): 19
Requires the complex decoder
Goldmont
Measurements
Throughput
Measured (loop):
20.00
Measured (unrolled):
20.00
Number of μops
Executed: 17
Microcode Sequencer (MS): 17
Requires the complex decoder
Airmont
Measurements
Throughput
Measured (loop):
34.00
Measured (unrolled):
34.00
Number of μops
Executed: 11
Microcode Sequencer (MS): 11
Requires the complex decoder
Bonnell
Measurements
Throughput
Measured (loop):
29.02
Measured (unrolled):
29.00
Number of μops
Executed: 16
Microcode Sequencer (MS): 16
Requires the complex decoder
AMD Zen 4
Measurements
Throughput
Measured (loop):
35.00
Measured (unrolled):
35.00
Number of μops
Executed: 46
AMD Zen 3
Measurements
Throughput
Measured (loop):
36.00
Measured (unrolled):
36.05
Number of μops
Executed: 44
Documentation
Number of μops: ucode
AMD Zen 2
Measurements
Throughput
Measured (loop):
37.47
Measured (unrolled):
37.45
Number of μops
Executed: 37
Documentation
Number of μops: ucode
AMD Zen+
Measurements
Throughput
Measured (loop):
36.84
Measured (unrolled):
36.90
Number of μops
Executed: 37
Documentation
Number of μops: ucode