Metric dependence of partition function at high temperature