Skip to content

Commit 791242a

Browse files
Bump BenchmarkDotNet from 0.13.12 to 0.14.0 (#617)
* Bump BenchmarkDotNet from 0.13.12 to 0.14.0 Bumps [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet) from 0.13.12 to 0.14.0. - [Release notes](https://github.com/dotnet/BenchmarkDotNet/releases) - [Commits](dotnet/BenchmarkDotNet@v0.13.12...v0.14.0) --- updated-dependencies: - dependency-name: BenchmarkDotNet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix measurementstats --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 7a9ba6d commit 791242a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

BitFaster.Caching.Benchmarks/BitFaster.Caching.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<ItemGroup>
2222
<PackageReference Include="Benchly" Version="0.6.1" />
23-
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
23+
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
2424
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.12" />
2525
<PackageReference Include="MathNet.Numerics" Version="5.0.0" />
2626
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />

BitFaster.Caching.ThroughputAnalysis/BitFaster.Caching.ThroughputAnalysis.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
19+
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
2020
<PackageReference Include="ConsoleTables" Version="2.6.1" />
2121
<PackageReference Include="CsvHelper" Version="33.0.1" />
2222
<PackageReference Include="EasyConsole" Version="1.1.0">

BitFaster.Caching.ThroughputAnalysis/MeasurementsStatistics.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public static MeasurementsStatistics Calculate(List<double> measurements, Outlie
4242
double variance = Variance(measurements, n, mean);
4343
double standardDeviation = Math.Sqrt(variance);
4444
double standardError = standardDeviation / Math.Sqrt(n);
45-
var confidenceInterval = new ConfidenceInterval(mean, standardError, n);
45+
var confidenceIntervalEstimator = new ConfidenceIntervalEstimator(n, mean, standardError);
46+
var confidenceInterval = confidenceIntervalEstimator.ConfidenceInterval(ConfidenceLevel.L999);
4647

4748
if (outlierMode == OutlierMode.DontRemove) // most simple scenario is done without allocations! but this is not the default case
4849
return new MeasurementsStatistics(standardError, mean, confidenceInterval);
@@ -69,7 +70,8 @@ public static MeasurementsStatistics Calculate(List<double> measurements, Outlie
6970
variance = VarianceWithoutOutliers(outlierMode, measurements, n, mean, lowerFence, upperFence);
7071
standardDeviation = Math.Sqrt(variance);
7172
standardError = standardDeviation / Math.Sqrt(n);
72-
confidenceInterval = new ConfidenceInterval(mean, standardError, n);
73+
confidenceIntervalEstimator = new ConfidenceIntervalEstimator(n, mean, standardError);
74+
confidenceInterval = confidenceIntervalEstimator.ConfidenceInterval(ConfidenceLevel.L999);
7375

7476
return new MeasurementsStatistics(standardError, mean, confidenceInterval);
7577
}

0 commit comments

Comments
 (0)