Skip to content

Commit f49b582

Browse files
fix: benchmark params info
1 parent 43b7d86 commit f49b582

9 files changed

Lines changed: 17 additions & 13 deletions

benchmark/BenchmarkRunner/Benchmarks/BaseReadBenchmark.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ int QueriesToSubmit
1313

1414
public abstract class BaseReadBenchmark
1515
{
16-
protected const string BenchmarkLegend = "Legend: L=Query Limit, C=Concurrency, Q=Queries To Submit";
17-
1816
[IterationSetup]
1917
public static void IterationSetup() => Helpers.InvokeGarbageCollection();
2018
public abstract Task Sqlc_GetCustomerOrders();

benchmark/BenchmarkRunner/Benchmarks/BaseWriteBenchmark.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ int BatchSize
1010

1111
public abstract class BaseWriteBenchmark
1212
{
13-
protected const string BenchmarkLegend = "Legend: R=Total Records, B=Batch Size";
1413
public const int TotalRecordsForSetup = 300000; // 3 million records
1514
public const int OrderIdsCountForSetup = 1000;
1615
public const int ProductIdsCountForSetup = 1000;

benchmark/BenchmarkRunner/Benchmarks/MysqlReadBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace BenchmarkRunner.Benchmarks;
1111
[SimpleJob(RuntimeMoniker.Net80, warmupCount: 2, iterationCount: 10)]
1212
[MemoryDiagnoser]
1313
[MarkdownExporterAttribute.GitHub]
14-
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory), Description(BenchmarkLegend)]
14+
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
1515
[CategoriesColumn]
1616
public class MysqlReadBenchmark : BaseReadBenchmark
1717
{

benchmark/BenchmarkRunner/Benchmarks/MysqlWriteBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace BenchmarkRunner.Benchmarks;
1313
[SimpleJob(RuntimeMoniker.Net80, warmupCount: 2, iterationCount: 10)]
1414
[MemoryDiagnoser]
1515
[MarkdownExporterAttribute.GitHub]
16-
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory), Description(BenchmarkLegend)]
16+
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
1717
[CategoriesColumn]
1818
public class MysqlWriteBenchmark : BaseWriteBenchmark
1919
{

benchmark/BenchmarkRunner/Benchmarks/PostgresqlReadBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace BenchmarkRunner.Benchmarks;
1111
[SimpleJob(RuntimeMoniker.Net80, warmupCount: 2, iterationCount: 10)]
1212
[MemoryDiagnoser]
1313
[MarkdownExporterAttribute.GitHub]
14-
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory), Description(BenchmarkLegend)]
14+
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
1515
[CategoriesColumn]
1616
public class PostgresqlReadBenchmark : BaseReadBenchmark
1717
{

benchmark/BenchmarkRunner/Benchmarks/PostgresqlWriteBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace BenchmarkRunner.Benchmarks;
1212
[SimpleJob(RuntimeMoniker.Net80, warmupCount: 2, iterationCount: 10)]
1313
[MemoryDiagnoser]
1414
[MarkdownExporterAttribute.GitHub]
15-
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory), Description(BenchmarkLegend)]
15+
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
1616
[CategoriesColumn]
1717
public class PostgresqlWriteBenchmark : BaseWriteBenchmark
1818
{

benchmark/BenchmarkRunner/Benchmarks/SqliteReadBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace BenchmarkRunner.Benchmarks;
1212
[SimpleJob(RuntimeMoniker.Net80, warmupCount: 2, iterationCount: 10)]
1313
[MemoryDiagnoser]
1414
[MarkdownExporterAttribute.GitHub]
15-
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory), Description(BenchmarkLegend)]
15+
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
1616
[CategoriesColumn]
1717
public class SqliteReadBenchmark : BaseReadBenchmark
1818
{

benchmark/BenchmarkRunner/Benchmarks/SqliteWriteBenchmark.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace BenchmarkRunner.Benchmarks;
1313
[SimpleJob(RuntimeMoniker.Net80, warmupCount: 2, iterationCount: 10)]
1414
[MemoryDiagnoser]
1515
[MarkdownExporterAttribute.GitHub]
16-
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory), Description(BenchmarkLegend)]
16+
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
1717
[CategoriesColumn]
1818
public class SqliteWriteBenchmark : BaseWriteBenchmark
1919
{

docs/07_Benchmark.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
# Benchmark Results
2+
3+
## Read Benchmarks
4+
`L=Query Limit, C=Concurrency, Q=Total Queries To Submit`
5+
26
[PostgreSQL - Reads](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/postgresql/results/BenchmarkRunner.Benchmarks.PostgresqlReadBenchmark-report-github.md)
37
<br/>
48

5-
[PostgreSQL - Writes](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/postgresql/results/BenchmarkRunner.Benchmarks.PostgresqlWriteBenchmark-report-github.md)
9+
[MySQL - Reads](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/mysql/results/BenchmarkRunner.Benchmarks.MysqlReadBenchmark-report-github.md)
610
<br/>
711

8-
[MySQL - Reads](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/mysql/results/BenchmarkRunner.Benchmarks.MysqlReadBenchmark-report-github.md)
12+
[SQLite - Reads](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/sqlite/results/BenchmarkRunner.Benchmarks.SqliteReadBenchmark-report-github.md)
913
<br/>
1014

11-
[MySQL - Writes](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/mysql/results/BenchmarkRunner.Benchmarks.MysqlWriteBenchmark-report-github.md)
15+
## Write Benchmarks
16+
`R=Total Records to Load, B=Batch Size`
17+
18+
[PostgreSQL - Writes](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/postgresql/results/BenchmarkRunner.Benchmarks.PostgresqlWriteBenchmark-report-github.md)
1219
<br/>
1320

14-
[SQLite - Reads](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/sqlite/results/BenchmarkRunner.Benchmarks.SqliteReadBenchmark-report-github.md)
21+
[MySQL - Writes](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/mysql/results/BenchmarkRunner.Benchmarks.MysqlWriteBenchmark-report-github.md)
1522
<br/>
1623

1724
[SQLite - Writes](https://github.com/DaredevilOSS/sqlc-gen-csharp/blob/add-performance-benchmark-with-efcore/benchmark/BenchmarkDotNet.Artifacts/sqlite/results/BenchmarkRunner.Benchmarks.SqliteWriteBenchmark-report-github.md)

0 commit comments

Comments
 (0)