Benchmarks to compare and select generator or function.