Skip to content

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:

  1. Install a version of the ASE Server.
  2. Clone the repository.
  3. Edit the AdoNetCore.AseClient.Tests\Benchmark\Benchmarks.cs file so that the AseServer, AsePort, AseDatabase, AseUsername, and AsePassword 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.
  4. Build in RELEASE mode.
  5. 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