Generate the sample only if we actually run a benchmark. Use a helper function which checks `if sample == nil` and generates the sample in this case. Or come up with something better ;)