Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 57 lines (45 sloc) 1.04 KB
#!/bin/bash
. ./init
# To get the same sets as the benchmark:
## 50k: 128
## 250k: 666
## 5m: 14088
## 1M: -fc -pc 2785
## 25M: -fc -pc 70812
## 100M: -fc -pc 284826
## 200M: -fc -pc 570000
## Guesses.
## 300M: -fc -pc 856000
## 400M: -fc -pc 1141300
## 500M: -fc -pc 1427000
function generate
{
local size="$1"
local pc="$2"
local DIR="$DATADIR/data-$size"
echo "// $DIR"
if [ -e "$DIR" ]
then
echo "**** Already exists: $DIR/data"
return
fi
[ -d "$DIR" ] || { mkdir "$DIR" ; }
echo "==== Generate data for $size"
java -cp "$CLASSPATH" -server benchmark.generator.Generator \
-fc -pc $pc -dir $DIR -fn "$DIR/data"
## echo "---- gzip: $size"
## gzip "$DIR/data.nt"
echo "--- Done: $size"
}
# rm -rf $DATADIR/data*
## generate 50k 128
## generate 250k 666
## generate 1m 2785
## generate 5m 14092
## generate 25m 70812
## generate 100m 284826
## generate 200m 570000
## generate 300m 856000
## generate 350m 1000000
## generate 400m 1141300
## generate 500m 1427000