Re:There Are Only Four Billion Floats – So Test Them All
by nly on Tuesday January 28, 2014 @08:12AM
(#7136818)
qsort strikes me as a bit of a crappy benchmark because of the type erasure. Your compiler likely isn't inlining or applying vectorisation. Vectorisation would likely benefit 32bit floats on a 64bit platform more than doubles.
[ Parent
| on HN ]
Re:There Are Only Four Billion Floats – So Test Them All
by hayfield on Tuesday January 28, 2014 @01:51PM
(#7138926)
Indeed - it probably isn't ideal.
I'd tested a number of sort algorithms (bubble, insertion, quick, merge, counting), so also testing the sort function from stdlib seemed like a logical continuation. It was done rather quickly, so there wasn't time to properly investigate, merely look at the numbers and go "that's strange".