-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
124 lines (114 loc) · 3.5 KB
/
Makefile
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
CC = g++
FLAGS = -std=c++17
FILES = prime_numbers.cpp
all: prime_numbers big_switch sizeof_types
prime_numbers: $(FILES)
$(CC) $(FLAGS) $(FILES) -o prime_numbers
big_switch: big_switch.cpp
$(CC) $(FLAGS) big_switch.cpp -o big_switch
sizeof_types: sizeof_types.cpp
$(CC) $(FLAGS) sizeof_types.cpp -o sizeof_types
luhn: luhn.cpp
$(CC) $(FLAGS) luhn.cpp -o luhn
clean:
rm -f prime_numbers big_switch sizeof_types luhn
cpp_primes: prime_numbers
@echo '=========================='
@echo 'testing 1,000'
- ./prime_numbers 1000
@echo '=========================='
@echo 'testing 10,000'
- ./prime_numbers 10000
@echo '=========================='
@echo 'testing 100,000'
- ./prime_numbers 100000
@echo '=========================='
@echo 'testing 1,000,000'
- ./prime_numbers 1000000
@echo '=========================='
@echo 'testing 10,000,000'
- ./prime_numbers 10000000
@echo '=========================='
@echo 'testing 100,000,000'
- ./prime_numbers 100000000
@echo '=========================='
@echo 'testing 1,000,000,000'
- ./prime_numbers 1000000000
@echo '=========================='
@echo 'testing 10,000,000,000'
- ./prime_numbers 10000000000
py_primes:
@echo '=========================='
@echo 'testing 1,000'
- python3 prime_numbers.py 1000
@echo '=========================='
@echo 'testing 10,000'
- python3 prime_numbers.py 10000
@echo '=========================='
@echo 'testing 100,000'
- python3 prime_numbers.py 100000
@echo '=========================='
@echo 'testing 1,000,000'
- python3 prime_numbers.py 1000000
@echo '=========================='
@echo 'testing 10,000,000'
- python3 prime_numbers.py 10000000
@echo '=========================='
@echo 'testing 100,000,000'
- python3 prime_numbers.py 100000000
@echo '=========================='
@echo 'testing 1,000,000,000'
- python3 prime_numbers.py 1000000000
@echo '=========================='
@echo 'testing 10,000,000,000'
- python3 prime_numbers.py 10000000000
jl_primes:
@echo '=========================='
@echo 'testing 1,000'
- julia prime_numbers.jl 1000
@echo '=========================='
@echo 'testing 10,000'
- julia prime_numbers.jl 10000
@echo '=========================='
@echo 'testing 100,000'
- julia prime_numbers.jl 100000
@echo '=========================='
@echo 'testing 1,000,000'
- julia prime_numbers.jl 1000000
@echo '=========================='
@echo 'testing 10,000,000'
- julia prime_numbers.jl 10000000
@echo '=========================='
@echo 'testing 100,000,000'
- julia prime_numbers.jl 100000000
@echo '=========================='
@echo 'testing 1,000,000,000'
- julia prime_numbers.jl 1000000000
@echo '=========================='
@echo 'testing 10,000,000,000'
- julia prime_numbers.jl 10000000000
js_primes:
@echo '=========================='
@echo 'testing 1,000'
- node prime_numbers.js 1000
@echo '=========================='
@echo 'testing 10,000'
- node prime_numbers.js 10000
@echo '=========================='
@echo 'testing 100,000'
- node prime_numbers.js 100000
@echo '=========================='
@echo 'testing 1,000,000'
- node prime_numbers.js 1000000
@echo '=========================='
@echo 'testing 10,000,000'
- node prime_numbers.js 10000000
@echo '=========================='
@echo 'testing 100,000,000'
- node prime_numbers.js 100000000
@echo '=========================='
@echo 'testing 1,000,000,000'
- node prime_numbers.js 1000000000
@echo '=========================='
@echo 'testing 10,000,000,000'
- node prime_numbers.js 10000000000