Skip to content

Commit 9475c56

Browse files
committed
bench
1 parent 7d7d023 commit 9475c56

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

BitFaster.Caching.Benchmarks/Lfu/SketchFrequency.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace BitFaster.Caching.Benchmarks.Lfu
99
{
1010
[SimpleJob(RuntimeMoniker.Net60)]
11+
[SimpleJob(RuntimeMoniker.Net80)]
1112
[MemoryDiagnoser(displayGenColumns: false)]
1213
[HideColumns("Job", "Median", "RatioSD", "Alloc Ratio")]
1314
[ColumnChart(Title ="Sketch Frequency ({JOB})")]
@@ -22,7 +23,7 @@ public class SketchFrequency
2223
private CmSketchCore<int, DisableHardwareIntrinsics> blockStd;
2324
private CmSketchCore<int, DetectIsa> blockAvx;
2425

25-
[Params(32_768, 524_288, 8_388_608, 134_217_728)]
26+
[Params(1024, 32_768, 524_288, 8_388_608, 134_217_728)]
2627
public int Size { get; set; }
2728

2829
[GlobalSetup]
@@ -45,7 +46,7 @@ public int FrequencyFlat()
4546
return count;
4647
}
4748

48-
[Benchmark(OperationsPerInvoke = iterations)]
49+
// [Benchmark(OperationsPerInvoke = iterations)]
4950
public int FrequencyFlatAvx()
5051
{
5152
int count = 0;

BitFaster.Caching.Benchmarks/Lfu/SketchIncrement.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace BitFaster.Caching.Benchmarks.Lfu
99
{
1010
[SimpleJob(RuntimeMoniker.Net60)]
11+
[SimpleJob(RuntimeMoniker.Net80)]
1112
[MemoryDiagnoser(displayGenColumns: false)]
1213
[HideColumns("Job", "Median", "RatioSD", "Alloc Ratio")]
1314
[ColumnChart(Title = "Sketch Increment ({JOB})")]
@@ -21,7 +22,7 @@ public class SketchIncrement
2122
private CmSketchCore<int, DisableHardwareIntrinsics> blockStd;
2223
private CmSketchCore<int, DetectIsa> blockAvx;
2324

24-
[Params(32_768, 524_288, 8_388_608, 134_217_728)]
25+
[Params(1024, 32_768, 524_288, 8_388_608, 134_217_728)]
2526
public int Size { get; set; }
2627

2728
[GlobalSetup]
@@ -43,7 +44,7 @@ public void IncFlat()
4344
}
4445
}
4546

46-
[Benchmark(OperationsPerInvoke = iterations)]
47+
//[Benchmark(OperationsPerInvoke = iterations)]
4748
public void IncFlatAvx()
4849
{
4950
for (int i = 0; i < iterations; i++)

0 commit comments

Comments
 (0)