0
|
1 SLOCCOUNT
|
|
2
|
|
3 cpp: 125
|
8
|
4 sh: 52
|
|
5 sed: 52
|
0
|
6
|
|
7
|
|
8
|
|
9
|
|
10 SIZE
|
|
11
|
8
|
12 14K graph* (cpp)
|
|
13 1.8K graph2.sh* (sh)
|
|
14 1.8K graph3.sh* (sed)
|
0
|
15
|
|
16
|
|
17
|
|
18
|
|
19 PERFORMANCE
|
|
20
|
8
|
21 C++
|
0
|
22
|
8
|
23 $ time ./graph input.txt > output.txt
|
|
24 real 0m0.041s
|
|
25 user 0m0.040s
|
|
26 sys 0m0.000s
|
|
27
|
|
28
|
|
29 sh
|
0
|
30
|
8
|
31 $ time ./graph2.sh input.txt > output.txt
|
|
32 real 0m20.611s
|
|
33 user 0m5.332s
|
|
34 sys 0m14.357s
|
|
35
|
0
|
36
|
8
|
37 sed
|
|
38
|
|
39 $ time ./graph3.sh input.txt > output.txt
|
|
40 real 0m0.195s
|
|
41 user 0m0.168s
|
|
42 sys 0m0.016s
|