Am 13.02.2018 um 03:43 schrieb Allin Cottrell:
On Mon, 12 Feb 2018, Sven Schreiber wrote:
> Yet another self-response, sorry! But before I forget, this could
> perhaps become the illustration in section 44.3 of the guide where it
> currently says "TO BE WRITTEN".
I'd very much like to fill in that unwritten slot, but I'd prefer that
it contain a "live" example, from an econometric point of view. And I'm
afraid we're not there yet. Your example is the closest so far, but it's
still artificial:
Of course the example is very artificial, it was never meant by anybody
(I believe) to be a serious calculation, just a crazy horserace.
But it's a very good point that the guide should contain something
"real". What about a contestant of the stationary bootstrap package
SB.gfn? That's something where I would expect some major value added
(but it remains to be seen...).
one could do so in hansl very much faster than by generating random
variates.
Obviously! As I said, I don't think it was anybody's point to really
calculate Euler's number.
<output>
Julia: 2.71788600 (time 1.18078s)
Native: 2.71811500 (time 2.02987s)
However, let me repeat Artur's (and Henrique's) observation here that
you will see a bigger divergence between Julia and Native when you
replace 10^6 with 10^7 or 10^8; the Native implementation will just
scale up linearly, but not the JITted Julia version.
alt gretl: 2.71828183 (time 0.00012595s)
Unfair! ;-)
But given how fast Julia is at generating random floating-point
values,
it seems to me there should be a real live example not far off.
Yes. Again, I suggest to tackle the SB.gfn package as a benchmark.
cheers,
sven