All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Microbenchmark, compiler barrier?

Also known as: microbenchmark · compiler barrier

Definition 2.3 Low-Latency Software · Chapter 2 — CPU Microarchitecture

A microbenchmark times a small piece of code in isolation, many times, to measure one property of the machine or of the code. A compiler barrier is a statement the compiler must treat as reading or writing memory (or a given value) although it emits no instruction; it stops the optimiser from deleting or moving the code being timed.

Read in context →