test sparse vs dense