Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

Parallelism on single Core with .NET C# and SIMD / AVX. First Example.

Anonymous
3,513 views

Welcome!

This C# code will shows to us a simple basic examples of SIMD / AVX. We will compare the sum of two arrays of integers without SIMD and with it. The performance increasing is awesome!

The source code is on GitHub, please feel free to come up with proposals to improve it.

Hands-on Demo

Run this ready to use benchmark
// { autofold
·using System;
using System.Diagnostics;
using System.Linq;
using System.Numerics;
namespace Answer
{
public class UniverseStub
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants