File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ improves the throughput of a web server that performs database operations.
19
19
20
20
This library outperforms Connector/NET (` MySql.Data ` ) on benchmarks:
21
21
22
- ![ Benchmark 1] ( ./docs/static/img/graph1 .png) ![ Benchmark 2] ( ./docs/static/img/graph2 .png)
22
+ ![ Benchmark 1] ( https://files.logoscdn.com/v1/files/12389056/content .png?signature=UE8FnU9ykb1f_7C68_D8lF2ZAzc ) ![ Benchmark 2] ( https://files.logoscdn.com/v1/files/12389051/content .png?signature=Gptw0KDjYREuulIk_37zuO6OToc )
23
23
24
- (Client: MySqlConnector 0.34.2 , Windows 10 x64; Server: MySQL Server 5.6.21, Unix)
24
+ (Client: MySqlConnector 0.44.0 , Windows 10 x64; Server: MySQL Server 5.6.21, Unix)
25
25
26
26
### Bug Fixes
27
27
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >Exe</OutputType >
4
- <TargetFrameworks >netcoreapp1.1;net47; netcoreapp2.0 </TargetFrameworks >
4
+ <TargetFrameworks >net472; netcoreapp2.1 </TargetFrameworks >
5
5
<LangVersion >latest</LangVersion >
6
6
</PropertyGroup >
7
7
<ItemGroup >
8
- <PackageReference Include =" BenchmarkDotNet" Version =" 0.10.13" />
8
+ <PackageReference Include =" BenchmarkDotNet" Version =" 0.11.1" />
9
+ <!-- PackageReference Include="MySql.Data" Version="8.0.12" / -->
9
10
</ItemGroup >
10
11
<ItemGroup >
11
12
<ProjectReference Include =" ..\..\src\MySqlConnector\MySqlConnector.csproj" />
Original file line number Diff line number Diff line change @@ -24,9 +24,8 @@ static void Main()
24
24
. With ( JitOptimizationsValidator . FailOnError )
25
25
. With ( MemoryDiagnoser . Default )
26
26
. With ( StatisticColumn . AllStatistics )
27
- . With ( Job . Default . With ( Runtime . Clr ) . With ( Jit . RyuJit ) . With ( Platform . X64 ) . With ( CsProjClassicNetToolchain . Net47 ) . WithId ( "net47" ) )
28
- . With ( Job . Default . With ( Runtime . Core ) . With ( CsProjCoreToolchain . NetCoreApp11 ) . WithId ( "netcore11" ) )
29
- . With ( Job . Default . With ( Runtime . Core ) . With ( CsProjCoreToolchain . NetCoreApp20 ) . WithId ( "netcore20" ) )
27
+ . With ( Job . Default . With ( Runtime . Clr ) . With ( Jit . RyuJit ) . With ( Platform . X64 ) . With ( CsProjClassicNetToolchain . Net472 ) . WithId ( "net472" ) )
28
+ . With ( Job . Default . With ( Runtime . Core ) . With ( CsProjCoreToolchain . NetCoreApp21 ) . WithId ( "netcore21" ) )
30
29
. With ( DefaultExporters . Csv ) ;
31
30
32
31
var summary = BenchmarkRunner . Run < MySqlClient > ( customConfig ) ;
@@ -182,7 +181,7 @@ private int ReadAllRowsSync(string sql)
182
181
}
183
182
184
183
// TODO: move to config file
185
- static string s_connectionString = "server=127.0.0.1;user id=mysqltest;password='test;key=\" val';port=3306;ssl mode=none;Use Affected Rows=true;Connection Reset=false;Default Command Timeout=0" ;
184
+ static string s_connectionString = "server=127.0.0.1;user id=mysqltest;password='test;key=\" val';port=3306;ssl mode=none;Use Affected Rows=true;Connection Reset=false;Default Command Timeout=0;AutoEnlist=false; " ;
186
185
187
186
MySqlConnection m_connection ;
188
187
}
You can’t perform that action at this time.
0 commit comments