@@ -125,7 +125,11 @@ wget https://github.com/boyter/scc/releases/download/v2.10.0/scc-2.13.0-x86_64-u
125
125
unzip scc-2.13.0-x86_64-unknown-linux.zip
126
126
cp scc /usr/local/bin/scc2.13.0
127
127
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
129
133
mv scc /usr/local/bin/scc
130
134
131
135
echo " Setting up rust toolchain"
@@ -134,19 +138,19 @@ source $HOME/.cargo/env
134
138
135
139
cargo install hyperfine tokei loc
136
140
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
139
143
chmod +x /usr/local/bin/polyglot/
140
144
141
145
# Now setup all of the benchmarks
142
146
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
147
151
python create_performance_test.py
148
152
cd ..
149
- rm artifical /create_performance_test.py
153
+ rm artificial /create_performance_test.py
150
154
151
155
# Clone the stuff we want to test
152
156
rm -rf redis
@@ -174,11 +178,11 @@ git clone --depth=1 https://github.com/torvalds/linux.git
174
178
175
179
# Regression test all versions of scc
176
180
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
178
182
179
183
# 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
182
186
183
187
echo " Running redis benchmark"
184
188
hyperfine ' scc redis' ' scc -c redis' ' tokei redis' ' loc redis' ' polyglot redis' ' gocloc redis' > benchmark_redis.txt
0 commit comments