Skip to content

Commit

Permalink
benchmark/benchmark.sh: Add
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-poptsov committed Aug 15, 2023
1 parent 4d36cfa commit f0812d4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions benchmark/benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

TEST_FILE="$1"
TEST_FILE_NAME=$(basename ${TEST_FILE})
TEST_FILE_FORMAT="$2"
GIT_COMMIT=$(git rev-parse --short HEAD)
TIMESTAMP=$(date -Iseconds)
OUTPUT="${TEST_FILE_NAME}-${GIT_COMMIT}-${TIMESTAMP}.log"
COUNT=5

for i in $(seq $COUNT); do
/usr/bin/time -o "$OUTPUT" -a -f "%e" \
./pre-inst-env ./utils/dsv \
--log-driver=null \
--file-format="$TEST_FILE_FORMAT" \
--summary \
"$TEST_FILE" > /dev/null
done

0 comments on commit f0812d4

Please sign in to comment.