wrapper for benchmark and profiler