Skip to content

Commit 4df7985

Browse files
fix slip test
1 parent be64b16 commit 4df7985

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Ydb.Sdk/test/Ydb.Sdk.Ado.Benchmarks/README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ Allocated : Allocated memory per single operation (managed only, incl
4141

4242
# YDB .NET SDK Session Pool Benchmarks (FIFO lock-free)
4343

44-
| Method | Mean | Error | StdDev | Median | Completed Work Items | Lock Contentions | Gen0 | Gen1 | Allocated |
45-
|-------------------------------------|-----------------:|-----------------:|-----------------:|-----------------:|---------------------:|-----------------:|---------:|---------:|----------:|
46-
| SingleThreaded_OpenClose | 64.75 ns | 1.004 ns | 0.986 ns | 64.31 ns | - | - | 0.0038 | - | 32 B |
47-
| MultiThreaded_OpenClose | 22,547.55 ns | 443.931 ns | 511.232 ns | 22,613.77 ns | 40.0020 | - | 0.9460 | - | 7888 B |
48-
| HighContention_OpenClose | 83,230.11 ns | 1,642.445 ns | 1,536.344 ns | 83,232.22 ns | 205.5402 | 0.0016 | 5.0049 | - | 42337 B |
49-
| SessionReuse_Pattern | 102,998.59 ns | 1,990.337 ns | 2,854.481 ns | 103,245.75 ns | 220.0000 | 0.0002 | 1.5869 | - | 13678 B |
50-
| SessionReuse_HighContention_Pattern | 3,735,379.14 ns | 73,499.927 ns | 116,578.682 ns | 3,694,595.05 ns | 19845.2422 | 5.7344 | 812.5000 | 132.8125 | 6750890 B |
51-
| SessionReuse_HighIterations_Pattern | 69,402,122.32 ns | 1,382,232.565 ns | 4,075,544.202 ns | 70,535,363.07 ns | 200020.0000 | - | 714.2857 | - | 6407458 B |
52-
44+
| Method | Mean | Error | StdDev | Completed Work Items | Lock Contentions | Gen0 | Gen1 | Allocated |
45+
|-------------------------------------|-----------------:|-----------------:|-----------------:|---------------------:|-----------------:|---------:|---------:|----------:|
46+
| SingleThreaded_OpenClose | 60.71 ns | 0.441 ns | 0.368 ns | - | - | 0.0038 | - | 32 B |
47+
| MultiThreaded_OpenClose | 23,368.69 ns | 464.175 ns | 1,129.867 ns | 40.0049 | - | 0.9460 | - | 7887 B |
48+
| HighContention_OpenClose | 91,700.72 ns | 1,803.206 ns | 3,842.780 ns | 204.6633 | 0.0007 | 5.0049 | - | 41951 B |
49+
| SessionReuse_Pattern | 117,545.11 ns | 2,226.365 ns | 4,014.595 ns | 220.0000 | 0.0001 | 1.5869 | - | 13656 B |
50+
| SessionReuse_HighContention_Pattern | 7,463,819.00 ns | 148,409.083 ns | 364,050.038 ns | 19044.6172 | 1.1719 | 765.6250 | 125.0000 | 6367528 B |
51+
| SessionReuse_HighIterations_Pattern | 70,844,972.06 ns | 1,400,128.942 ns | 3,589,066.009 ns | 200020.0000 | - | 750.0000 | - | 6407440 B |

src/Ydb.Sdk/test/Ydb.Sdk.Ado.Tests/YdbConnectionTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,11 @@ INSERT INTO {tableName}
188188
[Fact]
189189
public async Task DisableDiscovery_WhenPropertyIsTrue_SimpleWorking()
190190
{
191-
await using var connection = CreateConnection();
191+
var connection = CreateConnection();
192192
connection.ConnectionString += ";DisableDiscovery=true";
193193
await connection.OpenAsync();
194194
Assert.True((bool)(await new YdbCommand(connection) { CommandText = "SELECT TRUE;" }.ExecuteScalarAsync())!);
195+
await connection.CloseAsync();
195196
await YdbConnection.ClearPool(connection);
196197
}
197198

0 commit comments

Comments
 (0)