Boost logo

Boost :

Subject: Re: [boost] interest in structure of arrays container?
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2016-10-31 04:09:27


On 10/30/2016 7:45 AM, Larry Evans wrote:
>
> Would you post that somewhere? I'd be curious about how it
> differs.
>

My code isn't very complete but since everyone else is sharing I'll post
what I've got.

FWIW I had to go back pretty far and then still make changes to get a
version of your soa_compare.benchmark.cpp that compiled on windows VS2015.

particle_count=1,000,000
minimum duration=2.85542

comparative performance table:

method rel_duration
________ ______________
Aos 3.08266
SoA 1.51109
Flat 1.50358
StdArray 1.91317
Block 1.60447
SSE 1.35994
SSE_opt 1.18056
SSE_goon 1
Press any key to continue . . .

code:
http://codepad.org/DECRpJrO

test:
http://codepad.org/IbdVcdq8


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