Scaling of N-body calculations