-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.sh
More file actions
executable file
·37 lines (30 loc) · 811 Bytes
/
script.sh
File metadata and controls
executable file
·37 lines (30 loc) · 811 Bytes
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
#!/bin/bash
clear
make
#TESTDIR="./testcases/"
TESTDIR="./prog1-testcases/" # change it to your directory
start=`date +%s`
./prog1 < $TESTDIR/delete.in
end=`date +%s`
echo "Runtime delete.in: $(($end - $start))"
echo "------------------------"
start=`date +%s`
./prog1 < $TESTDIR/deleteMax.in
end=`date +%s`
echo "Runtime deleteMax.in: $(($end - $start))"
echo "------------------------"
start=`date +%s`
./prog1 < $TESTDIR/insert.in
end=`date +%s`
echo "Runtime insert.in: $(($end - $start))"
echo "------------------------"
start=`date +%s`
./prog1 < $TESTDIR/lookup.in
end=`date +%s`
echo "Runtime lookup.in: $(($end - $start))"
echo "------------------------"
start=`date +%s`
./prog1 < $TESTDIR/random.in
end=`date +%s`
echo "Runtime random.in: $(($end - $start))"
echo "------------------------"