-
Notifications
You must be signed in to change notification settings - Fork 45
Running the benchmarks
Chris Hughes edited this page Jan 5, 2018
·
2 revisions
The code for performing the benchmarks uses the BenchmarkDotNet framework.
To verify the test results you must:
- Install a version of the ASE Server.
- Clone the repository.
- Edit the AdoNetCore.AseClient.Tests\Benchmark\Benchmarks.cs file so that the
AseServer
,AsePort
,AseDatabase
,AseUsername
, andAsePassword
have valid values for the test server. Ideally provide a user with db_owner or higher permissions as the test harness executes DDL to create test tables and data. - Build in RELEASE mode.
- On the command line:
cd [repo]\AdoNetCore.AseClient\test\AdoNetCore.AseClient.Benchmark\bin\Release
dotnet netcoreapp1.1\AdoNetCore.AseClient.Benchmark.dll corefx
dotnet netcoreapp2.0\AdoNetCore.AseClient.Benchmark.dll corefx
net4.6\AdoNetCore.AseClient.Benchmark.exe corefx
net4.6\AdoNetCore.AseClient.Benchmark.exe sap
After each test run, the results will be located in a BenchmarkDotNet.Artifacts\results
folder relative to where the test was executed from.
If you have issues with the tests that require debugging, they can be run via the nunit wrapper located in: AdoNetCore.AseClient.Tests\Benchmark\BenchmarkTests.cs
- Using the driver
- Developing the driver