Skip to content

Commit 671604a

Browse files
committed
Replace single-value [Params] with constants
1 parent 0ecaa3a commit 671604a

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/FirebirdSql.Data.FirebirdClient.Benchmarks/CommandBenchmark.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ namespace FirebirdSql.Data.FirebirdClient.Benchmarks;
2222
[Config(typeof(BenchmarkConfig))]
2323
public partial class CommandBenchmark : BenchmarkBase
2424
{
25+
const int Count = 100;
26+
2527
[Params("BIGINT", "VARCHAR(10) CHARACTER SET UTF8")]
2628
public string DataType { get; set; }
27-
28-
[Params(100)]
29-
public int Count { get; set; }
3029
}

src/FirebirdSql.Data.FirebirdClient.Benchmarks/LargeFetchBenchmark.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ namespace FirebirdSql.Data.FirebirdClient.Benchmarks;
55
[Config(typeof(BenchmarkConfig))]
66
public class LargeFetchBenchmark : BenchmarkBase
77
{
8-
[Params(100_000)]
9-
public int Count { get; set; }
8+
const int Count = 100_000;
109

1110
[Params(
1211
"BIGINT",

0 commit comments

Comments
 (0)