Calculate data entropy to benchmark compression algorithms