measure average compression ratio