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.
  5. On the command line:
    1. cd [repo]\AdoNetCore.AseClient\test\AdoNetCore.AseClient.Benchmark\bin\Release\netcoreapp1.1
    2. dotnet AdoNetCore.AseClient.Benchmark.dll corefx
    3. cd [repo]\AdoNetCore.AseClient\test\AdoNetCore.AseClient.Benchmark\bin\Release\netcoreapp2.0
    4. dotnet AdoNetCore.AseClient.Benchmark.dll corefx
    5. cd [repo]\AdoNetCore.AseClient\test\AdoNetCore.AseClient.Benchmark\bin\Release\net4.6
    6. AdoNetCore.AseClient.Benchmark.exe corefx
    7. 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.

Clone this wiki locally