configurable benchmark sample size; option to enable profiler