9 # Compute the average, find the maximum.
11 avg[i] = total[i] / count[i];
17 # Calculate variance by raw score method.
18 var = (sum[i] - ((total[i] * total[i]) / count[i])) / count[i];
20 # The standard deviation is the square root of the variance.
23 # Display the release value, the average score, and run count.
24 printf("%s:%.2f:%d:", i, avg[i], count[i]);
26 # If this run wasn't the fastest, display the percent by which
27 # this run was slower.
29 printf("%.0f%%", ((max - avg[i]) / max) * 100);
33 # If there was more than a single run, display the relative
36 printf("%.0f%%", stdv * 100 / avg[i]);