Skip to content

Commit 2280759

Browse files
committed
Update benchmarks for MySqlConnector 2.2.0.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent 89089a0 commit 2280759

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
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 MySQL Connector/NET (`MySql.Data`) on benchmarks:
2121

22-
![Benchmark](https://files.logoscdn.com/v1/assets/12545033/optimized?w=800)
22+
![Benchmark](https://files.logoscdn.com/v1/files/63673908/assets/13928411/content.png?signature=MVHBZxDfB0J-0Pueja8NtvuLD9A)
2323

24-
(Client: MySqlConnector 2.1.0, Ubuntu 20.04, .NET 6.0; Server: Azure Database for MySQL 8.0.21)
24+
(Client: MySqlConnector 2.2.0, Ubuntu 20.04, .NET 7.0; Server: Azure Database for MySQL 8.0.28, TLS 1.2)
2525

2626
### Bug Fixes
2727

docs/content/home.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ while (await reader.ReadAsync())
6464

6565
MySqlConnector outperforms Connector/NET (MySql.Data) on benchmarks:
6666

67-
![Benchmark 1](https://files.logoscdn.com/v1/assets/2533998/optimized?share=0xvvkseNVc6bzHkZ) ![Benchmark 2](https://files.logoscdn.com/v1/assets/2533995/optimized?share=tcaVS7frgdVm6PAz)
67+
![Benchmark](https://files.logoscdn.com/v1/files/63673908/assets/13928411/content.png?signature=MVHBZxDfB0J-0Pueja8NtvuLD9A)
6868

69-
(Client: MySqlConnector 0.44.0, Windows 10 x64; Server: MySQL Server 5.6.21, Unix)
69+
(Client: MySqlConnector 2.2.0, Ubuntu 20.04, .NET 7.0; Server: Azure Database for MySQL 8.0.28, TLS 1.2)
7070

7171
## Why use MySqlConnector over Oracle’s Connector/NET?
7272

tests/Benchmark/Benchmark.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>net48;net5.0</TargetFrameworks>
5-
<LangVersion>9.0</LangVersion>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<LangVersion>10.0</LangVersion>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
9-
<PackageReference Include="MySqlConnector" Version="1.3.0-beta.4" />
10-
<PackageReference Include="MySql.Data" Version="8.0.21" />
8+
<PackageReference Include="BenchmarkDotNet" Version="0.13.2" />
9+
<PackageReference Include="MySqlConnector" Version="2.2.0-rc.1" />
10+
<PackageReference Include="MySql.Data" Version="8.0.31" />
1111
</ItemGroup>
1212
</Project>

tests/Benchmark/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ static void Main()
2323
.AddValidator(JitOptimizationsValidator.FailOnError)
2424
.AddDiagnoser(MemoryDiagnoser.Default)
2525
.AddColumn(StatisticColumn.AllStatistics)
26-
.AddJob(Job.Default.WithRuntime(ClrRuntime.Net48))
27-
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core50))
26+
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core70))
2827
.AddExporter(DefaultExporters.Csv);
2928

3029
var summary = BenchmarkRunner.Run<MySqlClient>(customConfig);

0 commit comments

Comments
 (0)