Calculate confidence interval for benchmark measurements

This commit is contained in:
Siarhei Fedartsou 2024-06-15 23:03:36 +02:00
parent 2eb620bb33
commit 944a3e44f5

View File

@ -79,7 +79,6 @@ class BenchmarkRunner:
raise Exception(f"Unknown benchmark: {benchmark_name}")
def calculate_confidence_interval(data):
print('Data: ', data.shape)
assert len(data) == 5, f"Shape: {data.shape}"
mean = np.mean(data)
std_err = np.std(data, ddof=1) / np.sqrt(len(data))