Debian Codegraph @

vector/v.surf.bspline/test_suite/profile_cmd.sh

raw
1 # nc2008/grass7 mapset
2
3 OUTFILE=callgrind.out.1196
4
5 g.region n=221230 s=220404 w=638634 e=639530 res=2
6 CMD="v.surf.bspline in=lidar_test raster=elev.lidar_test_cubic method=bicubic --o"
7 valgrind --tool=callgrind --callgrind-out-file=$OUTFILE --trace-children=yes $CMD
8
9 # http://kcachegrind.sourceforge.net
10 kcachegrind $OUTFILE
11
12 99% of time is spent in gmath lib's G_math_cholesky_sband_decomposition()
13
14
15 time $CMD
16 =========
17
18 base serial:
19 real 2m58.174s
20 user 2m57.759s
21 sys 0m0.428s
22 --
23 real 2m58.215s
24 user 2m57.723s
25 sys 0m0.508s
26
27
28 ## with OpenMP x6 cpus:
29 real 0m50.322s 3.5x speedup in clock time (42% efficiency loss)
30 user 4m44.006s 1.6x increase in overall CPU time
31 sys 0m1.048s
32 --nostaic
33 real 0m50.792s
34 user 4m46.426s
35 sys 0m1.248s
36 --static again
37 real 0m50.168s
38 user 4m42.914s
39 sys 0m1.180s
40 --nostatic again
41 real 0m52.104s
42 user 4m54.334s
43 sys 0m1.244s
44
45 (static wins)
46
47
48 ##OMP_NUM_THREADS=4:
49 real 1m30.730s
50 user 5m52.274s
51 sys 0m0.696s
52
53
54 ##OMP_NUM_THREADS=2:
55 real 1m48.180s 1.6x speedup in clocktime
56 user 3m32.477s 1.2x increase in overall CPU time
57 sys 0m0.560s
58
59
60 ##OMP_NUM_THREADS=1:
61 real 2m51.480s
62 user 2m51.031s
63 sys 0m0.464s