Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 374 Bytes
#!/bin/bash
tmp=${TMPDIR:-/tmp}
export CDPATH=
set -e
if ! [ -d $tmp/benchmark-fixture ]; then
echo Making benchmark fixtures
mkdir $tmp/benchmark-fixture
cd $tmp/benchmark-fixture
dirnames=`echo {0..9}/{0..9}/{0..9}/{0..9}` # 10000 dirs
filenames=`echo {0..9}/{0..9}/{0..9}/{0..9}/{0..9}.txt`
echo $dirnames | xargs mkdir -p
echo $filenames | xargs touch
fi