forked from AeroNotix/algostructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
95 lines (86 loc) · 3.12 KB
/
Makefile
File metadata and controls
95 lines (86 loc) · 3.12 KB
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
timer = /usr/bin/time -f "%e - %M" -a -o results
dict = ~/dev/testing/dictionaries.txt
all:
g++ -std=c++11 -o C++/bintreetest -O3 -LC++ C++/binarytree/test.cpp
g++ -std=c++11 -o C++/prefixtrietest -O3 -LC++ C++/prefixtrie/test.cpp
cd CPython/binarytree; make
cd CPython/prefixtrie; make
btree:
echo "C++/binarytree" > results
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
$(timer) ./C++/bintreetest
echo "CPython/binarytree" >> results
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
$(timer) python2 ./CPython/binarytree/btreetest.py
echo "Python/binarytree" >> results
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
$(timer) pypy ./Python/btree.py
echo "Java/binarytree" >> results
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
cd Java; make testbtree
echo "Go/binarytree" >> results
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
$(timer) go run Go/binarytree.go
echo "Common Lisp/binarytree" >> results
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
$(timer) sbcl --load "Common Lisp/binarytree.lisp"
rm ./C++/bintreetest ./C++/prefixtrietest
prefixtrie:
echo "C++/prefixtrie" >> results
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)
$(timer) ./C++/prefixtrietest $(dict)