Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91
Windows
Desktop
2 years ago
Test name Executions per second
AoS 16.6 Ops/sec
SoA 3.1 Ops/sec
SoA - one component per loop 3.1 Ops/sec
Interlaced Array - no loop unrolling 3.1 Ops/sec
Interlaced Array - with loop unrolling 3.0 Ops/sec
Script Preparation code:
Tests:
  • AoS

  • SoA

  • SoA - one component per loop

  • Interlaced Array - no loop unrolling

  • Interlaced Array - with loop unrolling