Skip to content

Instantly share code, notes, and snippets.

@VictorNicollet
VictorNicollet / SumBench.cs
Created September 16, 2020 19:43
SIMD Benchmark: Span vs Array
using BenchmarkDotNet.Attributes;
using System;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
namespace SIMDBench
{
public class SumBench
{
@VictorNicollet
VictorNicollet / AbsBench.cs
Created September 16, 2020 20:31
SIMD benchmark: Vector.Abs on array or span
using System;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace Benchmarks
{