We recently upgraded from using CoreLab.MySql 4.50.27.0 to DevArt 6.70.302.0 for .NET.
After this change was done, we noticed a big impact on our production servers, where response times on the webservers in most cases tripled(!).
In order to investigate why this happened, we did a performance test on a local database where we timed devart, corelab and mysql drivers doing to exact same thing.
We measured a query (SELECT * FROM FOO WHERE FOO_PK = 1) 1000 times for each of the driver and added each timing to a total millisec.
The measure per query included:
- Opening connection
- Sending query with ExecuteReader() but not doing anything about the result
- Closing connection
Here is a random result from the program:
Code: Select all
Query tested: SELECT * FROM FOO WHERE FOO_ID = 1
Total time taken with DevArt: 2587ms
Total time taken with CoreLab: 840ms
Total time taken with MySql: 1880ms
Code: Select all
Total time taken with DevArt: 9404ms
Total time taken with CoreLab: 2968ms
Total time taken with MySql: 8802ms
Are we missing something here? Is there some settings on MySqlConnection that we've forgotten? Why can it be such a huge change?
Even measuring *just* the connection.open() renders the same difference between the drivers, devart being three times as slow to perform an opening of a connection.
I've tried searching for answers to this, so far to no avail. I hope someone can help us with this.
Kind regards