.NET 5.0 Job Performance

Running Hangfire Server with the AspNetCore build on .NET 5.0.

I did not expect to see this great a difference in job execution between .NET 5.0 jobs and other frameworks.

Can anyone shed light on why the .NET 5.0 job would be that much slower?

Are they all really doing the same thing?

Yes, exactly.

.NET 5.0 Class Library

using System;

public class Net50
{
    public void Run()
    {
        Console.WriteLine("Hello from NetLibrary5.0");
    }
}

.NET Core 3.1 Class Library

public class Core30
{
    public void Run()
    {
        Console.WriteLine("Hello from CoreLibrary3.0");
    }
}

And what’s more, Microsoft’s guidance on this is particular about performance.

We don’t use the Dashboard so I don’t have a simple comparison like you have, but I haven’t noticed anything as glaring as what you’ve shown. How do the numbers change over the course of multiple runs?