Skip to content

Benchmarks ​

Measurement campaigns

The CPU panels come from the measurement campaign of FFTL 0.3.0 (November 2026, commit 6ce74e9, whose package code is that of 0.3.0 apart from the cpu_features preference, which is off by default). The GPU panels come from the campaign of v0.2.0; FFTL's GPU code has not changed since. Every run has seven rounds per case and library, every library warmed up before each round, and an A/A pair of FFTL. CPU runs are pinned to one socket. The A6000 shares its host with other users; its run is pinned to one core on the GPU's socket. The A/A bands are part of the panel tables.

The numbers in the text are read from the summaries that the figure scripts write (bench/fig_speedup.jl, bench/fig_standing.jl), so text and figures come from the same data.

Which library to depend on ​

The standing of every library against its best counterpart on each platform

This figure asks the question a package author faces: which single library to depend on. Per case, the fold change is the time of the fastest other library divided by this library's time; right of the parity line is a win, left of it a loss, and wins are not clipped at 1. The box is the quartile rectangle with the median line and Tukey whiskers, the points are the raw cases. Colour marks the library. The label under each column carries the fold factor (the geometric mean of the fold changes over the cases the library itself computes), the win rate, and the coverage: libraries that lack transform kinds (ducc0 without DCT/DST, vDSP with c2c and DCT-II only, MPSGraph and cuFFT without real-to-real at all) compute their factor over a smaller subset, so the coverage is part of the label.

FFTL is the only library that runs in all six panels and computes every kind. Its fold factor ranges from 0.98× to 1.49× over the panels. It is below 1 on the NVIDIA A6000 (0.98×), where FFTL has the highest factor (0.98×); see Platforms and limits.

How FFTL compares ​

Speed-up of FFTL over the fastest other library on each platform

The speed-up is the time of the fastest other library for that case divided by FFTL's time; above 1 (shaded), FFTL is faster. One marker per transform; colour is the precision, shape the kind; open triangles at the panel edge mark values beyond the axis. In the two multi-thread panels every library is timed at its better setting per case, the minimum over one and all threads, so FFTW is not charged for spreading tiny transforms over many threads. Transforms that no competitor computes (DCT and DST in cuFFT and MPSGraph, most real-to-real kinds) are not plotted. The table gives the share of cases in which FFTL is faster than the fastest other library, and the median speed-up; on the A6000, small transforms are bound by kernel launches.

platformcompetitorsFFTL faster inmedian speed-upcases
Apple M1 Max, 1 threadFFTW, ducc0, vDSP88 %1.33×682
AMD EPYC 7702, 1 threadFFTW, ducc085 %1.38×682
Apple M1 Max, 8 threadsFFTW, ducc084 %1.37×682
AMD EPYC 7702, 32 threadsFFTW, ducc075 %1.36×682
Apple M1 Max GPUMPSGraph, VkFFT72 %1.36×337
NVIDIA RTX A6000cuFFT, VkFFT44 %0.97×674

The data are the panel tables in bench/results, aggregated from the campaign runs by bench/harness/aggregate.jl. Each table has a .meta file with the provenance of its runs (library builds, pinning, load, start and end); the table lists the commit of the checkout that ran the harness, whether the package code was that of the release, and the start of the first run.

datacheckoutpackage codemeasured
panel-a6000.csv1efbaf1–2026-11-15
panel-epyct1.csv6ce74e9–2026-11-18
panel-epyct32.csv6ce74e9–2026-11-18
panel-m1gpu.csv4ed260bv0.2.02026-11-15
panel-m1t1.csv6ce74e9–2026-11-18
panel-m1t8.csv6ce74e9–2026-11-18

Scope of the benchmark campaign ​

The campaign compares FFTL with the full-featured reference libraries that it would replace as a dependency. The other pure-Julia FFT packages have different goals and are not benchmarked here; see Other pure-Julia FFTs.

  • Complex, real and real-to-real transforms on the CPU, 1D to 3D, Float32 and Float64, against the competitors that support the same kind. Each kind has its own column; kinds without a competitor are shown separately.

  • Threads. The same sizes with one thread and with the number of threads of the machine, with the noise band of each machine.

  • GPU. Complex, real and real-to-real transforms against the vendor library (cuFFT on CUDA, MPSGraph and Metal.jl's FFT on Metal) and against VkFFT.

  • libfftl. The C library against the Julia package.

  • Planning. The cost of the first plan in a fresh process, separate from the execution time.

  • Accuracy. Error against a high-precision reference over the same sizes.

Protocol ​

The protocol is described on the Performance page: A/B runs on the same machine, medians of interleaved runs, A/A runs for the noise band, and sizes reported separately from the sizes used for tuning.

Machines ​

machinerole
Apple M1 Maxdevelopment machine, CPU and Metal GPU
AMD EPYC 7702 (Zen 2, 2 sockets, AVX2)x86-64 CPU of the figures above; x86-64 development machine (thresholds, tests)
AMD EPYC 7763 (Zen 3, 2 sockets, AVX2)x86-64 CPU of the v0.2.0 campaign; hosts the A6000
NVIDIA RTX A6000CUDA GPU

Each result names the library, its version, the build flags and the thread count. Competitors are built from their current releases with native CPU flags; FFTW is planned with MEASURE.

Status ​

partstatus
harness, protocol and figuresdone
campaign 0.3.0: Apple M1 Max CPU (1, 8 threads), AMD EPYC 7702 (1, 16, 32 threads)done
campaign v0.2.0: Apple M1 Max GPU, NVIDIA RTX A6000 (CPU panels replaced by 0.3.0)done
campaign: A6000 rerun with an A/A pairrunning