Boost logo

Boost :

Subject: Re: [boost] BOOST::SIMD - handling double : precision vs speed
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-04-02 16:13:06


I just did some benchmarking with single and double precision using
SSE and CPU on a fairly recent machine. Only one SSE function is being
used: _mm_sqrt_ps and _mm_sqrt_pd, respectively.

Using float I get:

SSE: 328ms
CPU: 2890ms

Using double I get:

SSE: 1188ms
CPU: 2875ms

double is almost 4-times slower than float. Seems to me that one
should favor float over double.

I still would like to see boost.simd appear and do some more testing.

Regards,
Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk