GPUSampledBoxmap
If an Nvidia or Apple M-series gpu is available, the parallelization technique can be improved dramatically. The gpu uses a "massively parallel programming" paradigm, which fits perfectly to the problem of mapping many sample points independently. Using the gpu, a speed increase of up to 200x can be achieved. For more information, see the maximizing performance section.
Example
using CUDA
n_points = 2048
F = BoxMap(:montecarlo, :gpu, f, domain, n_points = n_points)
p = plot!(
p, F(B),
color=RGBA(1.,0.,0.,0.5),
lab="$n_points MonteCarlo test points"
)