[gambit-list] Some floating-point benchmarks

Marc Feeley feeley at iro.umontreal.ca
Wed Apr 18 18:26:00 EDT 2018


> On Apr 18, 2018, at 6:00 PM, Bradley Lucier <lucier at math.purdue.edu> wrote:
> 
> On 04/16/2018 09:28 AM, Marc Feeley wrote:
>> Nice!  I assume it is much faster than the fft algorithm in the fft.scm Gambit benchmark.
> 
> When using generic vectors rather than f64vectors, it's about (<) twice as fast as the code in fft.scm; when using f64vectors, it's about (>) four times as fast.
> 
>> So lets add this to the benchmarks (with an appropriate name), and perhaps propose it as a new R7RS benchmark.
> 
> So what do you think about using f64vectors where they're available?

Yes the benchmarks use the (FLOATvector-ref v x) macro which maps to (vector-ref v x) or (f64vector-ref v x) depending on the f64vector support of the Scheme implementation.  Should be easy to change your (f64vector-ref v x) into (FLOATvector-ref v x).

Marc



More information about the Gambit-list mailing list