Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nwt committed Oct 28, 2024
1 parent a4f8545 commit 53646a6
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/output-check.sh
Original file line number Diff line number Diff line change
@@ -17,10 +17,10 @@
# explicitly returning the intended error code.

cd zed-sample-data
scripts/check_md5sums.sh zng
scripts/check_md5sums.sh bsup
ZNG_SUCCESS="$?"
echo
scripts/check_md5sums.sh zng-uncompressed
scripts/check_md5sums.sh bsup-uncompressed
ZNG_UNCOMPRESSED_SUCCESS="$?"
echo
scripts/check_md5sums.sh zson
8 changes: 4 additions & 4 deletions scripts/perf-compare.sh
Original file line number Diff line number Diff line change
@@ -82,18 +82,18 @@ do
echo -e "### $DESC\n" | tee "$MD"
echo "|**<br>Tool**|**<br>Arguments**|**Input<br>Format**|**Output<br>Format**|**<br>Real**|**<br>User**|**<br>Sys**|" | tee -a "$MD"
echo "|:----------:|:---------------:|:-----------------:|:------------------:|-----------:|-----------:|----------:|" | tee -a "$MD"
for INPUT in zeek zng zng-uncompressed zson json ; do
for OUTPUT in zeek zng zng-uncompressed zson json ; do
for INPUT in zeek bsup bsup-uncompressed zson json ; do
for OUTPUT in zeek bsup bsup-uncompressed zson json ; do
superpipe_query=${SUPERPIPE_QUERIES[$n]}
echo -n "|\`super\`|\`$superpipe_query\`|$INPUT|$OUTPUT|" | tee -a "$MD"
case $INPUT in
json ) super_flags="-i json -I $shaper" superpipe_query="| $superpipe_query" ;;
zng-uncompressed ) super_flags="-i zng" ;;
bsup-uncompressed ) super_flags="-i bsup" ;;
* ) super_flags="-i $INPUT" ;;
esac
case $OUTPUT in
json ) super_flags="$super_flags -f json" ;;
zng-uncompressed ) super_flags="$super_flags -f zng -zng.compress=false" ;;
bsup-uncompressed ) super_flags="$super_flags -f bsup -bsup.compress=false" ;;
* ) super_flags="$super_flags -f $OUTPUT" ;;
esac
ALL_TIMES=$(time -p (super $super_flags -c "$superpipe_query" $DATA/$INPUT/* > /dev/null) 2>&1)

0 comments on commit 53646a6

Please sign in to comment.