Skip to content

Commit

Permalink
address shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Jun 28, 2024
1 parent dc9b681 commit 664d9d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
11 changes: 6 additions & 5 deletions benchmark/main.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
#!/bin/bash

sudo apt remove -y mergerfs

echo "echo, nomerger" > csv
for i in $(seq 1 10)
do
echo nomerger $i
echo nomerger "$i"
./echo.sh >> csv
done

echo "rustup, nomerger" >> csv
export TMPDIR="/home/ezri/tmp"
for i in $(seq 1 10)
do
echo nomerger $i
echo nomerger "$i"
./rustup.sh >> csv
done

sudo apt install -y mergerfs
echo "echo, merger" >> csv
for i in $(seq 1 10)
do
echo nomerger $i
echo merger "$i"
./echo.sh >> csv
done

Expand All @@ -28,7 +30,6 @@ echo "rustup, merger" >> csv
export TMPDIR="/mnt"
for i in $(seq 1 10)
do
echo merger $i
echo merger "$i"
./rustup.sh >> csv
done

16 changes: 10 additions & 6 deletions benchmark/rustup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/bash

export TMPDIR=/mnt
export CARGO_HOME=$(mktemp -d)
export RUSTUP_HOME=$(mktemp -d)
echo $CARGO_HOME
echo $RUSTUP_HOME
CARGO_HOME=$(mktemp -d)
export CARGO_HOME
RUSTUP_HOME=$(mktemp -d)
export RUSTUP_HOME
echo "$CARGO_HOME"
echo "$RUSTUP_HOME"
./timed-csv.sh tests/rustup.sh
du -hs $CARGO_HOME
du -hs $RUSTUP_HOME
du -hs "$CARGO_HOME"
du -hs "$RUSTUP_HOME"

0 comments on commit 664d9d1

Please sign in to comment.