function createBenchmark( n ) {
	return benchmark;

	/**
	* Benchmark function.
	*
	* @private
	* @param {Benchmark} b - benchmark instance
	*/
	function benchmark( b ) {
		var values;
		var out;
		var i;

		values = [
			'beep',
			'boop',
			'baap',
			'biip'
		];

		b.tic();
		for ( i = 0; i < b.iterations; i++ ) {
			out = repeat( values[ i%values.length ], n );
			if ( typeof out !== 'string' ) {
				b.fail( 'should return a string' );
			}
		}
		b.toc();
		if ( !isString( out ) ) {
			b.fail( 'should return a string' );
		}
		b.pass( 'benchmark finished' );
		b.end();
	}
}
Creates a benchmark function.

@private
@param {PositiveInteger} n - number of repeats
@returns {Function} benchmark function