2012-04-09 14:31:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "### Test : as delimiter. This can be confusing for uptime ie. --load";
|
2012-11-21 21:28:52 +00:00
|
|
|
parallel -k --load 300% -d : echo ::: a:b:c
|
2012-04-09 14:31:05 +00:00
|
|
|
|
2012-11-21 21:28:52 +00:00
|
|
|
export PARALLEL="--load 300%"
|
2012-04-09 14:31:05 +00:00
|
|
|
echo PARALLEL=$PARALLEL
|
|
|
|
|
|
|
|
for i in $(seq 2 10); do
|
|
|
|
i2=$[i*i]
|
2013-04-08 14:16:40 +00:00
|
|
|
seq $i2 | parallel -j0 --load 300% -kX echo {} | wc
|
|
|
|
seq 1 ${i2}0000 | nice parallel -kj20 --recend "\n" --spreadstdin gzip -1 | zcat | sort -n | md5sum
|
2012-04-09 14:31:05 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "### Test if --load blocks. Bug.";
|
2013-04-08 14:16:40 +00:00
|
|
|
seq 1 1000 | parallel -kj2 --load 300% --recend "\n" --spreadstdin gzip -1 | zcat | sort -n | md5sum
|
|
|
|
seq 1 1000 | parallel -kj0 --load 300% --recend "\n" --spreadstdin gzip -1 | zcat | sort -n | md5sum
|
2012-04-09 14:31:05 +00:00
|
|
|
|
2013-04-08 14:16:40 +00:00
|
|
|
seq 1 1000000 | parallel -kj0 --recend "\n" --spreadstdin gzip -1 | zcat | sort -n | md5sum
|
|
|
|
seq 1 1000000 | parallel -kj20 --recend "\n" --spreadstdin gzip -1 | zcat | sort -n | md5sum
|