Skip to content

Commit d851b9b

Browse files
committed
Update benchmarks to latest code.
Update baseline from MySql.Data 6.10.5 to 8.0.12.
1 parent b3d584d commit d851b9b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ improves the throughput of a web server that performs database operations.
1919

2020
This library outperforms Connector/NET (`MySql.Data`) on benchmarks:
2121

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)
2323

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)
2525

2626
### Bug Fixes
2727

docs/static/img/graph1.png

-3.53 KB
Binary file not shown.

docs/static/img/graph2.png

-3.23 KB
Binary file not shown.

tests/Benchmark/Benchmark.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>netcoreapp1.1;net47;netcoreapp2.0</TargetFrameworks>
4+
<TargetFrameworks>net472;netcoreapp2.1</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
</PropertyGroup>
77
<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" / -->
910
</ItemGroup>
1011
<ItemGroup>
1112
<ProjectReference Include="..\..\src\MySqlConnector\MySqlConnector.csproj" />

tests/Benchmark/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ static void Main()
2424
.With(JitOptimizationsValidator.FailOnError)
2525
.With(MemoryDiagnoser.Default)
2626
.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"))
3029
.With(DefaultExporters.Csv);
3130

3231
var summary = BenchmarkRunner.Run<MySqlClient>(customConfig);
@@ -182,7 +181,7 @@ private int ReadAllRowsSync(string sql)
182181
}
183182

184183
// 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;";
186185

187186
MySqlConnection m_connection;
188187
}

0 commit comments

Comments
 (0)