bench/utils.js
function randomArray(size) {
	const cache = arrayCaches[size];
	return cache[Math.floor(Math.random() * cache.length)];
}
function randomArray(size) {
	const cache = arrayCaches[size];
	return cache[Math.floor(Math.random() * cache.length)];
}
function randomArray ( size ) { const cache = arrayCaches [ size ] ; return cache [ Math . floor ( Math . random ( ) * cache . length ) ] ; }
Returns an array of random length with random contents.
@param {string} size - Either 'small', 'medium', or 'large'.
Returns an array of random length with random contents .