Skip to content

Commit ecad716

Browse files
fix: string representation of WriteBenchmarkArgs & ReadBenchmarkParams
1 parent 3f60414 commit ecad716

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

benchmark/BenchmarkRunner/Benchmarks/BaseReadBenchmark.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ public readonly record struct ReadBenchmarkParams(
55
int Limit,
66
int Concurrency,
77
int QueriesToSubmit
8-
);
8+
) {
9+
public override string ToString() => $"Limit={Limit}, Concurrency={Concurrency}, Queries={QueriesToSubmit:N0}";
10+
}
911

1012
public abstract class BaseReadBenchmark
1113
{

benchmark/BenchmarkRunner/Benchmarks/BaseWriteBenchmark.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
public readonly record struct WriteBenchmarkArgs(
22
int TotalRecordsToLoad,
33
int BatchSize
4-
);
4+
) {
5+
public override string ToString() => $"Records={TotalRecordsToLoad:N0}, BatchSize={BatchSize:N0}";
6+
}
57

68
public abstract class BaseWriteBenchmark
79
{

0 commit comments

Comments
 (0)