Calculate teraflops (TFLOPS) or instructions per second from core count, clock speed and work per cycle, or estimate task time from a processing rate.

Theoretical peak from the hardware numbers, not a benchmark result.

FLOPs per cycle: 2 per GPU shader core (FP32 FMA); 32 per CPU core with AVX2 FP32, 64 with AVX-512. For instructions, use IPC.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Processing rate (FLOPS / TFLOPS)Finds the theoretical peak rate of a processor in TFLOPS, GFLOPS or MFLOPS, or in instructions per secondRequires the number of cores, the clock speed and the work units per core cycle
Core countFinds the number of cores that a rate impliesRequires the nominal processing rate, the clock speed and the work units per core cycle
Clock speedFinds the clock speed that a rate impliesRequires the nominal processing rate, the number of cores and the work units per core cycle
Work per core cycleFinds the FLOPs or instructions each core completes in one clock cycleRequires the nominal processing rate, the number of cores and the clock speed
Task timeFinds how long a fixed amount of work takesRequires the nominal processing rate and the total work units
Total workFinds how much work is completed in a set timeRequires the nominal processing rate and the task time
Required nominal rateFinds the rate needed to finish a fixed amount of work in a set timeRequires the total work units and the task time
Compare systemsFinds the ratio between the theoretical rates of two systemsRequires the cores, clock speed and work units per core cycle of System A and System B

Work basis sets what is counted: floating-point operations, which give FLOPS, or instructions, which give instructions per second. Clock speed is in GHz, MHz or kHz. The work per cycle field suggests 2 FLOPs for a GPU shader core, 16 for a CPU core with AVX2 in double precision, 32 with AVX2 in single precision and 64 with AVX-512 in single precision. The three task functions also take a sustained rate as a percent of nominal, and a blank means 100%. Three presets fill in example numbers; they are arithmetic examples, not the specifications of a real chip.

Processing Power Formulas

Rate = N × f × W [1]
RateWork per second: FLOPS, or instructions per second
NNumber of cores
fClock speed (Hz, cycles per second)
WWork units per core in one cycle: FLOPs, or instructions (IPC)

Peak FLOPS is the clock frequency multiplied by the number of cores and by the floating-point operations each core can process in one cycle, and it can be worked out from hardware numbers without running a benchmark [1]. One teraFLOPS is 10¹² FLOPS and one gigaFLOPS is 10⁹. Where a processor has a fused multiply-add instruction, the multiply and the add each count as an operation [1].

Processing rate (FLOPS / TFLOPS)

The formula above applies directly. An 8-core CPU at 3.6 GHz doing 32 FLOPs per core cycle peaks at 8 × 3.6 × 10⁹ × 32 = 921.6 GFLOPS, or 0.9216 TFLOPS. A GPU with 5,120 cores at 1.5 GHz and 2 FLOPs per cycle peaks at 15.36 TFLOPS. On the instruction basis, 4 cores at 3.5 GHz averaging 2 instructions per cycle run 28 billion instructions per second, which is 28 GIPS, not 28 GFLOPS.

Core count

N = Rate ÷ (f × W)

921.6 GFLOPS at 3.6 GHz and 32 FLOPs per cycle is 8 cores. Inputs that imply a fraction of a core are rejected.

Clock speed

f = Rate ÷ (N × W)

921.6 GFLOPS from 8 cores at 32 FLOPs per cycle is 3.6 GHz.

Work per core cycle

W = Rate ÷ (N × f)

921.6 GFLOPS from 8 cores at 3.6 GHz is 32 FLOPs per core cycle.

Task time

t = Work ÷ (Rate × u)

u is the sustained rate as a fraction of nominal. 10¹⁵ floating-point operations on a 921.6 GFLOPS system that sustains 50% take 10¹⁵ ÷ (460.8 × 10⁹) = 2,170 seconds, about 36 minutes.

Total work

Work = Rate × u × t

921.6 GFLOPS sustained at 100% for one hour completes 921.6 × 10⁹ × 3,600 = 3.31776 × 10¹⁵ floating-point operations.

Required nominal rate

Rate = Work ÷ (t × u)

Finishing 10¹⁵ operations in 10 minutes at 80% of nominal needs 10¹⁵ ÷ (600 × 0.8) = 2.083 TFLOPS.

Compare systems

Ratio = RateA ÷ RateB

System A at 921.6 GFLOPS against System B with 4 cores at 3.2 GHz and 16 FLOPs per cycle, which is 204.8 GFLOPS, gives a ratio of 4.5, so A is 350% higher on paper.

Limits of This Estimate

  • The result is a theoretical peak, not a benchmark. The rate a device reaches under a realistic workload is a separate, lower figure that has to be measured [1].
  • Every core is assumed to be identical and fully busy on parallel work. Memory speed, scheduling, serial steps and clock speeds that drop under load all reduce real throughput.
  • FLOPs per cycle depends on precision, vector width and the mix of instructions. The suggested values assume two fused multiply-add units per CPU core, for example 8 single-precision values × 2 units × 2 operations = 32 with AVX2. These estimates are based on the best available data and estimations.
  • Instructions per cycle is not a FLOPs per cycle value. A rate worked out from IPC is in instructions per second and cannot be compared with a FLOPS figure.

Sources

  1. AMD, Understanding Peak, Max-Achievable and Delivered FLOPs, Part 1: peak FLOPS formula, counting of fused multiply-add, and the difference between peak and achievable rates