Skip to content

Commit 158ee60

Browse files
committed
update benchmark
1 parent a500fe2 commit 158ee60

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

benchmark.sh

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ wget https://github.com/boyter/scc/releases/download/v2.10.0/scc-2.13.0-x86_64-u
125125
unzip scc-2.13.0-x86_64-unknown-linux.zip
126126
cp scc /usr/local/bin/scc2.13.0
127127

128-
# Now setup as the default
128+
wget https://github.com/boyter/scc/releases/download/v3.0.0/scc-3.0.0-x86_64-unknown-linux.zip
129+
unzip scc-3.0.0-x86_64-unknown-linux.zip
130+
cp scc /usr/local/bin/scc3.0.0
131+
132+
# Now setup the most recent as the default
129133
mv scc /usr/local/bin/scc
130134

131135
echo "Setting up rust toolchain"
@@ -134,19 +138,19 @@ source $HOME/.cargo/env
134138

135139
cargo install hyperfine tokei loc
136140

137-
wget https://github.com/vmchale/polyglot/releases/download/0.5.24/poly-x86_64-unknown-linux-icc
138-
mv poly-x86_64-unknown-linux-icc /usr/local/bin/polyglot
141+
wget https://github.com/vmchale/polyglot/releases/download/0.5.29/poly-x86_64-unknown-linux-gcc-9
142+
mv poly-x86_64-unknown-linux-gcc-9 /usr/local/bin/polyglot
139143
chmod +x /usr/local/bin/polyglot/
140144

141145
# Now setup all of the benchmarks
142146

143-
rm -rf artifical
144-
mkdir artifical
145-
cp create_performance_test.py artifical
146-
cd artifical
147+
rm -rf artificial
148+
mkdir artificial
149+
cp create_performance_test.py artificial
150+
cd artificial
147151
python create_performance_test.py
148152
cd ..
149-
rm artifical/create_performance_test.py
153+
rm artificial/create_performance_test.py
150154

151155
# Clone the stuff we want to test
152156
rm -rf redis
@@ -174,11 +178,11 @@ git clone --depth=1 https://github.com/torvalds/linux.git
174178

175179
# Regression test all versions of scc
176180
echo "Running regression benchmark"
177-
hyperfine 'scc1.0.0 linux' 'scc1.1.0 linux' 'scc1.2.0 linux' 'scc1.3.0 linux' 'scc1.4.0 linux' 'scc1.5.0 linux' 'scc1.6.0 linux' 'scc1.7.0 linux' 'scc1.8.0 linux' 'scc1.9.0 linux' 'scc1.10.0 linux' 'scc1.11.0 linux' 'scc1.12.0 linux' 'scc1.12.1 linux' 'scc2.0.0 linux' 'scc2.1.0 linux' 'scc2.2.0 linux' 'scc2.3.0 linux' 'scc2.4.0 linux' 'scc2.5.0 linux' 'scc2.6.0 linux' 'scc2.7.0 linux' 'scc2.8.0 linux' 'scc2.9.0 linux' 'scc2.9.1 linux' 'scc2.10.0 linux' 'scc2.11.0 linux' 'scc2.12.0 linux' 'scc2.13.0 linux' > benchmark_regression.txt
181+
hyperfine 'scc1.0.0 linux' 'scc1.1.0 linux' 'scc1.2.0 linux' 'scc1.3.0 linux' 'scc1.4.0 linux' 'scc1.5.0 linux' 'scc1.6.0 linux' 'scc1.7.0 linux' 'scc1.8.0 linux' 'scc1.9.0 linux' 'scc1.10.0 linux' 'scc1.11.0 linux' 'scc1.12.0 linux' 'scc1.12.1 linux' 'scc2.0.0 linux' 'scc2.1.0 linux' 'scc2.2.0 linux' 'scc2.3.0 linux' 'scc2.4.0 linux' 'scc2.5.0 linux' 'scc2.6.0 linux' 'scc2.7.0 linux' 'scc2.8.0 linux' 'scc2.9.0 linux' 'scc2.9.1 linux' 'scc2.10.0 linux' 'scc2.11.0 linux' 'scc2.12.0 linux' 'scc2.13.0 linux' 'scc3.0.0 linux' > benchmark_regression.txt
178182

179183
# Benchmark against everything
180-
echo "Running artifical benchmark"
181-
hyperfine 'scc artifical' 'scc -c artifical' 'tokei artifical' 'loc artifical' 'polyglot artifical' > benchmark_artifical.txt
184+
echo "Running artificial benchmark"
185+
hyperfine 'scc artificial' 'scc -c artificial' 'tokei artificial' 'loc artificial' 'polyglot artificial' > benchmark_artificial.txt
182186

183187
echo "Running redis benchmark"
184188
hyperfine 'scc redis' 'scc -c redis' 'tokei redis' 'loc redis' 'polyglot redis' 'gocloc redis' > benchmark_redis.txt

0 commit comments

Comments
 (0)