Mercurial > lbo > hg > localmr
view testdata/generate_sorted_files.sh @ 69:ddd39d8ba118
Add some tests for the grouping iterator
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 06 Feb 2016 17:08:16 +0000 |
parents | 2e7fba6d7cad |
children |
line wrap: on
line source
#!/bin/bash # This script generates 11 files with random alphanumeric strings. # Those are used by certain tests to test and measure the performance of # sharded sort implementations. for I in {0..10}; do cat /dev/urandom | tr -dc "\n[:alnum:]" | egrep '[[:alnum:]]{15,}' | colrm 16 | head -n 1000000 | sort > sorted${I}.txt; done