This example utilizes the SIMD capabilities (SSE or AVX extensions) of contemporary CPUs through a simple array averaging example using the System.Numerics.Vectors namespace which is a feature of .NET's x64 RyuJIT and .NET Core's CoreCLR.
- .NET 6.0.1xx SDK
- If using Visual Studio, then VS 2022 or newer is required which supports targeting .NET 6.0
- x64 CPU with SSE or AVX extensions running a supported x64 flavour of Windows, Linux or macOS
- .NET 6.0.1xx SDK
git clone [email protected]:laszlolukacs/DotNetNumericsBenchmark.git <LOCAL_WORKING_DIR>dotnet build --configuration release
- Alternatively open the
DotNetNumericsBenchmark.slnin your IDE of choice - Build the solution using the
Releasebuild configuration
- From the output directory call
DotNetNumericsBenchmark.exe