Files
ssh.net/test/Renci.SshNet.Benchmarks/Program.cs
T
Wojciech Nagórski f1297dec75 Move test projects (#1212)
* Move test projects to test folder.
Move global.json to root of repo.
Update solution items in solution.

* Move test projects to test folder.
Move global.json to root of repo.
Update solution items in solution.
Update appveyor configuration/

* Attempt to have appveyor use the correct .NET SDK.

* Update .NET SDK to version 7.0.402.

* Move Data folder below Renci.SshNet.Tests.

* Make csinst less chatty.

* Move Data folder directly below test folder as it's used by multiple test projects.

* Remove CS1591 nowarn from concrete test projects as this is already defined in the Directory.Build.props that is in the test folder.

* Fix integration test after moving test projects

---------

Co-authored-by: drieseng <gert.driesen@telenet.be>
2023-10-14 22:16:11 +02:00

28 lines
1.0 KiB
C#

using BenchmarkDotNet.Running;
namespace Renci.SshNet.Benchmarks
{
class Program
{
static void Main(string[] args)
{
// Usage examples:
// 1. Run all benchmarks:
// dotnet run -c Release -- --filter *
// 2. List all benchmarks:
// dotnet run -c Release -- --list flat
// 3. Run a subset of benchmarks based on a filter (of a benchmark method's fully-qualified name,
// e.g. "Renci.SshNet.Benchmarks.Security.Cryptography.Ciphers.AesCipherBenchmarks.Encrypt_CBC"):
// dotnet run -c Release -- --filter *Ciphers*
// 4. Run benchmarks and include memory usage statistics in the output:
// dotnet run -c Release -- filter *Rsa* --memory
// 3. Print help:
// dotnet run -c Release -- --help
// See also https://benchmarkdotnet.org/articles/guides/console-args.html
_ = BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
}
}
}