Density comparator