updated perf/sampling.jl to include testing on the `sample!` function itself