a function for instant benchmark