Skip to content

Commit 2ca05be

Browse files
fix: adjust benchmark parameters
1 parent dc29a5b commit 2ca05be

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,19 @@ jobs:
122122
uses: actions/download-artifact@v4
123123
with:
124124
name: mysql-results
125-
path: benchmark/BenchmarkDotNet.Artifacts/results/mysql
125+
path: benchmark/BenchmarkDotNet.Artifacts/mysql
126126

127127
- name: Download PostgreSQL Results
128128
uses: actions/download-artifact@v4
129129
with:
130130
name: postgresql-results
131-
path: benchmark/BenchmarkDotNet.Artifacts/results/postgresql
131+
path: benchmark/BenchmarkDotNet.Artifacts/postgresql
132132

133133
- name: Download SQLite Results
134134
uses: actions/download-artifact@v4
135135
with:
136136
name: sqlite-results
137-
path: benchmark/BenchmarkDotNet.Artifacts/results/sqlite
137+
path: benchmark/BenchmarkDotNet.Artifacts/sqlite
138138

139139
- name: Create Pull Request
140140
uses: peter-evans/create-pull-request@v6

benchmark/BenchmarkRunner/Benchmarks/MysqlReadBenchmark.cs

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

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

benchmark/BenchmarkRunner/Benchmarks/MysqlWriteBenchmark.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 MysqlWriteBenchmark
1616
{
17-
private const int TotalRecords = 10000000; // 10 million records
17+
private const int TotalRecords = 5000000; // 5 million records
1818
private readonly string _connectionString = Config.GetMysqlConnectionString();
1919
private QuerySql _sqlcImpl = null!;
2020
private Queries _efCoreImpl = null!;

benchmark/BenchmarkRunner/Benchmarks/PostgresqlReadBenchmark.cs

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

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

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 = 10000000; // 10 million records
17+
private const int TotalRecords = 5000000; // 5 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(1000, 10000, 50000)]
23+
[Params(500, 1000, 3000)]
2424
public int BatchSize { get; set; }
2525

2626
[GlobalSetup]

benchmark/BenchmarkRunner/Benchmarks/SqliteReadBenchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ 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 = 1000;
20+
private const int QueriesToRun = 500;
2121

22-
[Params(50, 500, 5000)]
22+
[Params(50, 500)]
2323
public int Limit { get; set; }
2424

2525
[Params(5, 25)]

benchmark/BenchmarkRunner/Benchmarks/SqliteWriteBenchmark.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 SqliteWriteBenchmark
1616
{
17-
private const int TotalRecords = 1000000; // 1 million records
17+
private const int TotalRecords = 500000; // 500K records
1818
private readonly string _connectionString = Config.GetSqliteConnectionString();
1919
private QuerySql _sqlcImpl = null!;
2020
private Queries _efCoreImpl = null!;
2121
private List<QuerySql.AddOrderItemsArgs> _testOrderItems = null!;
2222

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

2626
[GlobalSetup]

0 commit comments

Comments
 (0)