performance comparison of different implementations of ParticleClass