Skip to content

Instantly share code, notes, and snippets.

View PhilsKay's full-sized avatar
💭
Systems Engineer

Kayode Philip PhilsKay

💭
Systems Engineer
View GitHub Profile
@PhilsKay
PhilsKay / Program.cs
Last active May 20, 2024 07:56
EF core 8: Bulk Delete comparison, ExecuteDelete() Vs Remove+SaveChanges()
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
namespace Reisty.TestConsole
{
public class Program
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
[SimpleJob(RuntimeMoniker.Net80)]
[MemoryDiagnoser]
public class PerformanceCheck
{
[Benchmark]
public ReadOnlySpan<char> AsSpan()