forked from tiehuis/zig-benchmarks-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun
executable file
·89 lines (65 loc) · 3.1 KB
/
run
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
output_file='build/output.txt'
input_file1='build/input5000000.txt'
if [ ! -f "$input_file1" ]; then
./ref/build/fasta 5000000 > "$input_file1"
fi
input_file2='build/input25000000.txt'
if [ ! -f "$input_file2" ]; then
./ref/build/fasta 25000000 > "$input_file2"
fi
input_file3='build/input100000000.txt'
if [ ! -f "$input_file3" ]; then
./ref/build/fasta 100000000 > "$input_file3"
fi
echo -e "\nK-NUCLEOTIDE (ZIG) <================================================"
time ./build/k-nucleotide < "$input_file2" > "$output_file"
md5sum "$output_file"
echo -e "\nK-NUCLEOTIDE (C) <=================================================="
time ./ref/build/k-nucleotide < "$input_file2" > "$output_file"
md5sum "$output_file"
echo -e "\nFASTA (ZIG) <======================================================="
time ./build/fasta 25000000 > "$output_file"
md5sum "$output_file"
echo -e "\nFASTA (C) <========================================================="
time ./ref/build/fasta 25000000 > "$output_file"
md5sum "$output_file"
echo -e "\nREGEX REDUX (ZIG) <================================================="
time ./build/regex-redux < "$input_file1"
echo -e "\nREGEX REDUX (C) <==================================================="
time ./ref/build/regex-redux < "$input_file1"
echo -e "\nBINARY-TREES (ZIG) <================================================"
time ./build/binary-trees 21
echo -e "\nBINARY-TREES (C) <=================================================="
time ./ref/build/binary-trees 21
echo ""
echo -e "\nFANNKUCH-REDUX (ZIG) <=============================================="
time ./build/fannkuch-redux 12
echo -e "\nFANNKUCH-REDUX (C) <================================================"
time ./ref/build/fannkuch-redux 12
echo -e "\nMANDELBROT (ZIG) <=================================================="
time ./build/mandelbrot 16000 > "$output_file"
md5sum "$output_file"
echo -e "\nMANDELBROT (C) <===================================================="
time ./ref/build/mandelbrot 16000 > "$output_file"
md5sum "$output_file"
echo -e "\nN-BODY (ZIG) <======================================================"
time ./build/n-body 50000000
echo -e "\nN-BODY (C) <========================================================"
time ./ref/build/n-body 50000000
echo -e "\nPIDIGITS (ZIG) <===================================================="
time ./build/pidigits 10000 > "$output_file"
md5sum "$output_file"
echo -e "\nPIDIGITS (C) <======================================================"
time ./ref/build/pidigits 10000 > "$output_file"
md5sum "$output_file"
echo -e "\nREVERSE-COMPLEMENT (ZIG) <=========================================="
time ./build/reverse-complement < "$input_file3" > "$output_file"
md5sum "$output_file"
echo -e "\nREVERSE-COMPLEMENT (C) <============================================"
time ./ref/build/reverse-complement < "$input_file3" > "$output_file"
md5sum "$output_file"
echo -e "\nSPECTRAL-NORM (ZIG) <==============================================="
time ./build/spectral-norm 5500
echo -e "\nSPECTRAL-NORM (C) <================================================="
time ./ref/build/spectral-norm 5500