benchmark base::sample