Skip to main content

warmup_thread_pool

Function warmup_thread_pool 

Source
pub fn warmup_thread_pool()
Expand description

Force rayon’s global thread pool to materialise.

Subsequent rayon calls dispatch in O(1), but the lazy initialisation can dominate the first 1-2 measurements at the small kernel sizes BEAM-time uses. Call this once before a benchmark loop to remove that bias.