ArticleslgStudy

computer science

Floating point operations per second

Floating point operations per second is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Floating point operations per second rather than just read about it. In short: Floating point operations per second (FLOPS, flops or flop/s) is a measure of computer performance or compute in computing, useful in fields of scientific computations that require floating-point calculations. For cases focused on numerical calculation, it is often a more relevant measure than instructions per second.

Floating point operations per second — main illustration
Floating point operations per second — illustration

Key takeaways

  • Floating point operations per second belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Floating point operations per second to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Floating point operations per second from memory before moving on to harder problems.

Reference excerpt

Floating point operations per second (FLOPS, flops or flop/s) is a measure of computer performance or compute in computing, useful in fields of scientific computations that require floating-point calculations. For cases focused on numerical calculation, it is often a more relevant measure than instructions per second.

FLOPS versus FLOP FLOPS and FLOP can have distinct meanings:

FLOPS (or FLOP/s) measures the rate of computation: floating-point operations per second. FLOP measures the total number of floating-point operations For example, the European AI Office uses FLOP as the number of operations when explaining the EU AI Act's training-compute threshold of 1025 floating-point operations. However, usage is not uniform: flop and prefixed forms such as petaflop are also used as names for rate units. In 2023, numerical analyst Nicholas Higham noted that general dictionaries differ in spelling, capitalization, and whether a term denotes a rate of computation or a number of floating-point operations.

Floating-point arithmetic

Floating-point arithmetic is needed for very large or very small real numbers, or computations that require a large dynamic range. Floating-point representation is similar to scientific notation, except computers use base two (with rare exceptions), rather than base ten. The encoding scheme stores the sign, the exponent (in base two for Cray and VAX, base two or ten for IEEE floating point formats, and base 16 for IBM Floating Point Architecture) and the significand (number after the radix point). While several similar formats are in use, the most common is ANSI/IEEE Std. 754-1985. This standard defines the format for 32-bit numbers called single precision, as well as 64-bit numbers called double precision and longer numbers called extended precision (used for intermediate results). Floating-point representations can support a much wider range of values than fixed-point, with the ability to represent very small numbers and very large numbers.

Dynamic range and precision The exponentiation inherent in floating-point computation assures a much larger dynamic range – the largest and smallest numbers that can be represented – which is especially important when processing data sets where some of the data may have extremely large range of numerical values or where the range may be unpredictable. As such, floating-point processors are ideally suited for computationally intensive applications.

Computational performance FLOPS and MIPS are units of measure for the processing speed of a computer. Floating-point operations are typically used in fields such as scientific computational research, as well as in machine learning. However, before the late 1980s floating-point hardware (it's possible to implement FP arithmetic in software over any integer hardware) was typically an optional feature, and computers that had it were said to be "scientific computers", or to have "scientific computation" capability. Thus the unit MIPS was useful to measure integer performance of any computer, including those without such a capability, and to account for architecture differences, similar MOPS (million operations per second) was used as early as 1970 as well. Note that besides integer (or fixed-point) arithmetics, examples of integer operation include data movement (A to B) or value testing (If A = B, then C). That's why MIPS as a performance benchmark is adequate when a computer is used in database queries, word processing, spreadsheets, or to run multiple virtual operating systems. In 1974 David Kuck used the term megaflops for the description of numerical performance measured by the number of floating-point calculations performed per second. Kuck argued that a single "instruction" can vary widely across machines, from a simple indexing step to a full vector inner product. He said that millions of operations per second (MOPS) became more reasonable as machine designs diverged, but he argued that for many numerical calculations logical operations and shifts are "overhead" so that millions of floating-point operations per second (megaflops) may be the more important measure.

FLOPS on an HPC-system can be calculated using this equation:

FLOPS=racks×nodesrack×socketsnode×coressocket×cyclessecond×FLOPscycle. This can be simplified to the most common case: a computer that has exactly 1 CPU:

FLOPS=cores×cyclessecond×FLOPscycle. FLOPS can be recorded in different measures of precision, for example, the TOP500 supercomputer list ranks computers by 64-bit (double-precision floating-point format) operations per second, abbreviated to FP64. Similar measures are available for 32-bit (FP32) and 16-bit (FP16) operations.

Floating-point operations per clock cycle for various processors

Performance records

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Floating point operations per second

Start with the simplest possible case. Write down what Floating point operations per second claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Floating point operations per second before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Floating point operations per second ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Floating point operations per second

In research
Floating point operations per second appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Floating point operations per second in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Floating point operations per second is common in secondary-school and first-year university syllabi. It links to neighbouring topics Benchmarks (computing), Floating point, Units of frequency, so understanding it makes those chapters shorter.
In everyday life
Look for Floating point operations per second outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Floating point operations per second” →

How to study Floating point operations per second in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Floating point operations per second means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Floating point operations per second out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Floating point operations per second in simple terms?

Floating point operations per second (FLOPS, flops or flop/s) is a measure of computer performance or compute in computing, useful in fields of scientific computations that require floating-point calculations. For cases focused on numerical calculation, it is often a more relevant measure than inst…

Why does Floating point operations per second matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Floating point operations per second?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Floating point operations per second.

Tags

  • Benchmarks (computing)
  • Floating point
  • Units of frequency

Keep exploring