I need some help benchmarking SoA vs AoS
maik klein via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 26 10:43:48 PDT 2016
On Saturday, 26 March 2016 at 17:06:39 UTC, ag0aep6g wrote:
> On 26.03.2016 18:04, ag0aep6g wrote:
>> https://gist.github.com/aG0aep6G/a1b87df1ac5930870ffe/revisions
>
> PS: Those enforces are for a size of 100_000 not 1_000_000,
> because I'm impatient.
Thanks, okay that gives me more more reliable results.
for 1_000_000
benchmarking complete access
AoS: 1 sec, 87 ms, 266 μs, and 4 hnsecs
SoA: 1 sec, 491 ms, 186 μs, and 6 hnsecs
benchmarking partial access
AoS: 7 secs, 167 ms, 635 μs, and 8 hnsecs
SoA: 1 sec, 20 ms, 573 μs, and 1 hnsec
This is sort of what I expected. I will do a few more benchmarks
now. I probably also randomize the inputs.
More information about the Digitalmars-d-learn
mailing list