|
From: | Julien Bect |
Subject: | Re: octave dev slow down |
Date: | Wed, 12 Jul 2017 18:10:25 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Le 12/07/2017 à 11:35, jbect a écrit :
Michael Godfrey wroteJust a note: I did some cleanup on the code sections that I have been timing: Old code: 4.3.0+ test 2: cputime used: 9.2e-01 seconds 4.0.3 /usr/bin/octave --no-gui test 2: cputime used: 6.4e-01 seconds New code: 4.3.0+ test 2: cputime used: 5.1395e-01 seconds 4.0.3 test 2: cputime used: 3.4943e-01 seconds Moral of this is that it pays to spend time on code cleanup. This more than offset the 4.3.0+ slowdown. Of course, 4.3.0+ is still slower by about the same amount. MichaelHi everyone, I also notice a similar a slow-down when benchmarking the stk_predict function in the stk package. Here are the median times in ms (the first two digits should be significant, sorry about the others): About the column names: * Oct403 is the 4.0.3 release from Debian repos * Oct421 is compiled from source from the tip of stable * Oct430 is compiled from source from the tip of default * (the first column... well, you can probably guess) About the row names: correspond to various configurations for the size of the input arguments. Basically: when these numbers are large, we essentially benchmarking linear algebra operations (I think). The results can be reproduced as follows hg clone -r 2.5.x http://hg.code.sf.net/p/kriging/hg stk-test cd stk-test octave & stk_init pkg load statistics cd misc/benchmarks stk_benchmark_predict @++ Julien This is weird, the table disappeared from my first email. Here it is: | : med_R2016 med_Oct403 med_Oct421 med_Oct430 | 1 / 1 : 0.614500 4.76944 4.66347 6.59025 | 10 / 1 : 0.780500 4.45724 4.36750 6.11651 | 100 / 1 : 1.554438 7.59995 7.41750 10.15353 | 1 / 10 : 0.761500 4.46904 4.37081 6.12175 | 10 / 10 : 0.779438 6.72776 6.62458 9.55874 | 100 / 10 : 1.512875 7.74771 7.55823 10.30993 | 1 / 100 : 0.580828 4.53871 4.40472 6.18076 | 10 / 100 : 0.703375 6.48999 6.31845 9.03147 | 100 / 100 : 1.917000 9.03255 8.49599 11.50894 | 1 / 1000 : 0.758219 4.59623 4.56923 6.31821 | 10 / 1000 : 1.198875 7.10303 7.03001 9.74554 | 100 / 1000 : 5.823250 16.21902 15.56194 16.60883 |
[Prev in Thread] | Current Thread | [Next in Thread] |