5 ########################################################################################################
6 # Algorith GeomLib_CheckCurveOnSurface takes too much time for Bspline curves with big number of knots
7 ########################################################################################################
9 beziercurve c 4 0 0 0 1 1 0 2 1 0 3 0 0
13 repeat 98 {insertknot c1 0.01*$i 1; incr i 1}
21 puts [dchrono cpu show]
22 set q1 [dchrono cpu show]
23 regexp {CPU user time: ([-0-9.+eE]+) seconds} ${q1} full t1
27 repeat 1000 {insertknot c2 0.00098*$i 1; incr i 1}
35 puts [dchrono cpu show]
36 set q2 [dchrono cpu show]
37 regexp {CPU user time: ([-0-9.+eE]+) seconds} ${q2} full t2
40 if { ${t2} > ${max_ratio}*${t1} } {
41 puts "Elapsed time is too much - Faulty"
43 puts "Elapsed time is OK"