Skip to content

Commit a852aa1

Browse files
Merge pull request #490 from ClickHouse/fix-data-sizes
Fix data sizes
2 parents cbdd0c7 + ee19b8b commit a852aa1

12 files changed

Lines changed: 12 additions & 12 deletions

File tree

chdb/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ cat log.txt | grep -P '^\d|Killed|Segmentation' | sed -r -e 's/^.*(Killed|Segmen
2222
awk '{ if (i % 3 == 0) { printf "[" }; printf $1; if (i % 3 != 2) { printf "," } else { print "]," }; ++i; }'
2323

2424
echo -n "Data size: "
25-
du -bcs .clickbench
25+
du -bcs .clickbench | grep total

databend/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ command time -f '%e' curl -XPUT 'http://root:@127.0.0.1:8000/v1/streaming_load'
6262
curl 'http://default@localhost:8124/' --data-binary "select count() from hits"
6363

6464
echo -n "Data size: "
65-
du -bcs _data
65+
du -bcs _data | grep total
6666
# 20922561953 _data
6767
# 20922561953 total
6868

druid/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ pigz -d -f hits.tsv.gz
4242
kill %1
4343

4444
echo -n "Data size: "
45-
du -bcs ./apache-druid-${VERSION}/var
45+
du -bcs ./apache-druid-${VERSION}/var | grep total

duckdb-vortex-partitioned/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ cat log-p.txt |
3838
sed -r -e 's/^.*(Killed|Segmentation).*$/null\nnull\nnull/; s/^Run Time \(s\): real\s*([0-9.]+).*$/\1/' |
3939
awk '{ if (i % 3 == 0) { printf "[" }; printf $1; if (i % 3 != 2) { printf "," } else { print "]," }; ++i; }'
4040

41-
echo "Data size: $(du -bcs hits_*.vortex)"
41+
echo "Data size: $(du -bcs hits_*.vortex | grep total)"

glaredb-partitioned/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mkdir -p "${script_dir}/data"
2121
pushd "${script_dir}/data"
2222

2323
seq 0 99 | xargs -P100 -I{} bash -c 'wget --continue --progress=dot:giga https://datasets.clickhouse.com/hits_compatible/athena_partitioned/hits_{}.parquet'
24-
echo "Data size: $(du -bcs hits*.parquet)"
24+
echo "Data size: $(du -bcs hits*.parquet | grep total)"
2525
popd
2626

2727
# Ensure working directory is the script dir. The view that gets created uses a

glaredb/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mkdir -p "${script_dir}/data"
2121
pushd "${script_dir}/data"
2222

2323
wget --continue --progress=dot:giga https://clickhouse-public-datasets.s3.eu-central-1.amazonaws.com/hits_compatible/athena/hits.parquet
24-
echo "Data size: $(du -bcs hits*.parquet)"
24+
echo "Data size: $(du -bcs hits*.parquet | grep total)"
2525
popd
2626

2727
# Ensure working directory is the script dir. The view that gets created uses a

heavyai/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ popd
4747
./run.sh 2>&1 | tee log.txt
4848

4949
echo -n "Data size: "
50-
du -bcs /var/lib/heavyai/
50+
du -bcs /var/lib/heavyai/ | grep total
5151

5252
cat log.txt | grep -P 'Total time|null' | sed -r -e 's/^.*Total time: ([0-9]+) ms$/\1/' |
5353
awk '{ if ($1 == "null") { print } else { print $1 / 1000 } }' |

parseable/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ sleep 180
4949
cat result.csv | sed -r -e 's/^([0-9\.]+) ([0-9\.]+) ([0-9\.]+)$/[\1, \2, \3]/'
5050

5151
echo -n "Data size: "
52-
du -bcs local-store
52+
du -bcs local-store | grep total
5353

5454
#kill parseable
5555
kill $PARSEABLE_PID

pinot/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ command time -f '%e' ./apache-pinot-$PINOT_VERSION-bin/bin/pinot-admin.sh Launch
4545
kill %1
4646

4747
echo -n "Data size: "
48-
du -bcs ./batch
48+
du -bcs ./batch | grep total

questdb/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ curl -s -S -G --data-urlencode "query=select datediff('s', start, finish) took_s
5454
./run.sh 2>&1 | tee log.txt
5555

5656
echo -n "Data size: "
57-
du -bcs ~/.questdb/db/hits*
57+
du -bcs ~/.questdb/db/hits* | grep total
5858

5959
cat log.txt | grep -P '"timings"|"error"|null' | sed -r -e 's/^.*"error".*$/null/; s/^.*"execute":([0-9]*),.*$/\1/' |
6060
awk '{ print ($1) / 1000000000 }' | sed -r -e 's/^0$/null/' |

0 commit comments

Comments
 (0)