-
Notifications
You must be signed in to change notification settings - Fork 23
/
run.bash
executable file
·30 lines (29 loc) · 1.23 KB
/
run.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo -e "=== clang -O3:"
perf stat -r 10 ./bin_test_c_clang 2>&1 > /dev/null | grep time
echo -e "\n=== gcc -O3:"
perf stat -r 10 ./bin_test_c_gcc 2>&1 > /dev/null | grep time
echo -e "\n=== mono C#:"
perf stat -r 10 mono -O=float32 bin_test_cs 2>&1 > /dev/null | grep time
echo -e "\n=== mono F#:"
perf stat -r 10 mono -O=float32 bin_test_fs.exe 2>&1 > /dev/null | grep time
echo -e "\n=== D (dmd):"
perf stat -r 10 ./bin_test_d_dmd 2>&1 > /dev/null | grep time
echo -e "\n=== D (ldc2):"
perf stat -r 10 ./bin_test_d_ldc 2>&1 > /dev/null | grep time
echo -e "\n=== D (gdc):"
perf stat -r 10 ./bin_test_d_gdc 2>&1 > /dev/null | grep time
echo -e "\n=== Go gc:"
perf stat -r 10 ./bin_test_go_gc 2>&1 > /dev/null | grep time
echo -e "\n=== Go gccgo -O3:"
perf stat -r 10 ./bin_test_go_gccgo 2>&1 > /dev/null | grep time
echo -e "\n=== Rust:"
perf stat -r 10 ./bin_test_rs 2>&1 >/dev/null | grep time
echo -e "\n=== Nim (gcc):"
perf stat -r 10 ./bin_test_nim_gcc 2>&1 > /dev/null | grep time
echo -e "\n=== Nim (clang):"
perf stat -r 10 ./bin_test_nim_clang 2>&1 > /dev/null | grep time
echo -e "\n=== Crystal:"
perf stat -r 10 ./bin_test_cr 2>&1 > /dev/null | grep time
echo -e "\n=== Java:"
perf stat -r 10 java -cp . test 2>&1 > /dev/null | grep time