2 Commits

Author SHA1 Message Date
c26c062182 fix: aggregate logs 2024-03-27 01:23:56 +08:00
3f2fd5fe8a chore(README.md): add one-liner instruction for running the benchmark 2024-03-21 09:10:35 -07:00
2 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,7 @@ Usage
Run the benchmark by executing the script:
```
bash ./buildbot-benchmark.bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/AOSC-Dev/buildbot-benchmark/master/buildbot-benchmark.bash)"
```
Collect "Real" time output from `time` output:

View File

@ -7,6 +7,7 @@ LLVMVER=18.1.1
LLVMURL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVMVER/llvm-project-$LLVMVER.src.tar.xz"
LLVMDIR="$(basename $LLVMURL | rev | cut -f3- -d'.' | rev)"
DEPENDENCIES="devel-base"
BUILDLOGFILE="$(pwd)/benchmark.log"
# LLVM configuration options.
CONFIG_OPTS=(
@ -199,7 +200,7 @@ else
fi
abinfo "(2/6) Preparing to benchmark Buildbot: Downloading LLVM (version $LLVMVER) ..."
wget -c $LLVMURL 2> benchmark.log || \
wget -c $LLVMURL 2> $BUILDLOGFILE || \
aberr "Failed to download LLVM: $?."
abinfo "(3/6) Preparing to benchmark Buildbot: Unpacking LLVM (version $LLVMVER) ..."
@ -219,11 +220,11 @@ export LANG=C
abinfo "(5/6) Preparing to benchmark Buildbot: Configuring LLVM (version $LLVMVER) ..."
cmake .. \
"${CONFIG_OPTS[@]}" \
-GNinja >> benchmark.log 2>&1 || \
-GNinja >> $BUILDLOGFILE 2>&1 || \
aberr "Failed to configure LLVM: $?."
abinfo "(6/6) Benchmarking Buildbot: Building LLVM ..."
time ninja 2>> benchmark.log || \
time ninja 2>> $BUILDLOGFILE || \
aberr "Failed to build LLVM: $?."
unset LC_ALL LANG