[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MinGW and 3-digit exponents

From: Rik
Subject: MinGW and 3-digit exponents
Date: Tue, 12 Nov 2013 20:34:47 -0800


I worked around the problem of failing tests because of 3-digit exponents
here (http://hg.savannah.gnu.org/hgweb/octave/rev/6a381b9ae055).

However, I went on to investigate whether PRINTF_EXPONENT_DIGITS carries a
performance penalty as claimed.  I found something like a 5% penalty, not a
300-400% penalty, so this might be a worthwhile option to turn on.

I used

x = rand (1e6, 1);
fid = fopen ("tst.txt", "wt");
tic; fprintf (fid, "%g\n", x); toc
fclose (fid)

Then I did the same test after using


I was running in a virtual machine and the timing precision on MinGW isn't
great, but the measured difference was small (~5%) with three runs for each

I filed a report so that this doesn't get lost


reply via email to

[Prev in Thread] Current Thread [Next in Thread]