function createBenchmark( N, colexicographic, k ) {
	var x = filled2dBy( [ N, N ], k, k, 0, constantFunction( N ) );
	return benchmark;

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

		b.tic();
		for ( i = 0; i < b.iterations; i++ ) {
			out = toCompact( x, k, k, colexicographic );
			if ( typeof out !== 'object' ) {
				b.fail( 'should return an array of arrays' );
			}
		}
		b.toc();
		if ( !isArrayArray( out ) ) {
			b.fail( 'should return an array of arrays' );
		}
		b.pass( 'benchmark finished' );
		b.end();
	}
}
Creates a benchmark function.

@private
@param {PositiveInteger} N - array lengths
@param {boolean} colexicographic - boolean indicating whether to store diagonals in colexicographic access order
@param {NonNegativeInteger} k - number of super-/sub-diagonals
@returns {Function} benchmark function