Fix performance metrics to take into account scalar type size