Skip to content

Commit d4ab2fb

Browse files
authored
buildbot-benchmark: set LANG to C
This change can speed up the benchmark (a little bit), as GCC does not need to localize them (probably).
1 parent f5ffa52 commit d4ab2fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

buildbot-benchmark/buildbot-benchmark.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
# Basic definitions.
5-
BENCHVER=20230112
5+
BENCHVER=20230227
66
LLVMVER=15.0.7
77
LLVMURL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVMVER/llvm-project-$LLVMVER.src.tar.xz"
88
LLVMDIR="$(basename $LLVMURL | rev | cut -f3- -d'.' | rev)"
@@ -61,6 +61,9 @@ mkdir -p "$LLVMDIR"/llvm/build || \
6161
aberr "Failed to create build directory: $?."
6262
cd "$LLVMDIR"/llvm/build || \
6363
aberr "Failed to swtich to build directory: $?."
64+
# Set LANG to C to make gcc faster (a little bit)
65+
export LC_ALL=C
66+
export LANG=C
6467

6568
abinfo "(5/6) Preparing to benchmark Buildbot: Configuring LLVM (version $LLVMVER) ..."
6669
cmake .. \
@@ -252,3 +255,4 @@ cmake .. \
252255
abinfo "(6/6) Benchmarking Buildbot: Building LLVM ..."
253256
time ninja 2>> benchmark.log || \
254257
aberr "Failed to build LLVM: $?."
258+
unset LC_ALL LANG

0 commit comments

Comments
 (0)