Skip to content

Commit 5fd924a

Browse files
fix: adjust benchmarks parameters
1 parent 856b04e commit 5fd924a

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

benchmark/BenchmarkRunner/Benchmarks/MysqlWriteBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ namespace BenchmarkRunner.Benchmarks;
1515
[CategoriesColumn]
1616
public class MysqlWriteBenchmark
1717
{
18-
private const int TotalRecords = 5000000; // 5 million records
18+
private const int TotalRecords = 3000000; // 3 million records
1919
private readonly string _connectionString = Config.GetMysqlConnectionString();
2020
private QuerySql _sqlcImpl = null!;
2121
private Queries _efCoreImpl = null!;
2222
private List<QuerySql.AddOrderItemsArgs> _testOrderItems = null!;
2323

24-
[Params(500, 1000, 2000)]
24+
[Params(100, 500, 1000)]
2525
public int BatchSize { get; set; }
2626

2727
[GlobalSetup]

benchmark/BenchmarkRunner/Benchmarks/PostgresqlWriteBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ namespace BenchmarkRunner.Benchmarks;
1414
[CategoriesColumn]
1515
public class PostgresqlWriteBenchmark
1616
{
17-
private const int TotalRecords = 5000000; // 5 million records
17+
private const int TotalRecords = 3000000; // 3 million records
1818
private readonly string _connectionString = Config.GetPostgresConnectionString();
1919
private QuerySql _sqlcImpl = null!;
2020
private Queries _efCoreImpl = null!;
2121
private List<QuerySql.AddOrderItemsArgs> _testOrderItems = null!;
2222

23-
[Params(500, 1000, 2000)]
23+
[Params(100, 500, 1000)]
2424
public int BatchSize { get; set; }
2525

2626
[GlobalSetup]

benchmark/BenchmarkRunner/Benchmarks/SqliteReadBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class SqliteReadBenchmark
1717
private readonly string _connectionString = Config.GetSqliteConnectionString();
1818
private QuerySql _sqlcImpl = null!;
1919
private const int CustomerCount = 250;
20-
private const int QueriesToRun = 250;
20+
private const int QueriesToRun = 500;
2121

2222
[Params(50, 500)]
2323
public int Limit { get; set; }

benchmark/BenchmarkRunner/Benchmarks/SqliteWriteBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace BenchmarkRunner.Benchmarks;
1414
[CategoriesColumn]
1515
public class SqliteWriteBenchmark
1616
{
17-
private const int TotalRecords = 1000000; // 1 million records
17+
private const int TotalRecords = 2000000; // 2 million records
1818
private readonly string _connectionString = Config.GetSqliteConnectionString();
1919
private QuerySql _sqlcImpl = null!;
2020
private Queries _efCoreImpl = null!;

0 commit comments

Comments
 (0)