thed24 / dotnet-local-function-allocation-benchmarks

A quick benchmark to showcase how lambdas can cause hidden memory allocations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hidden Lambda Allocation Benchmarks

Explanation

Coming soon in blog post form!

Results on my PC

Method Mean Error StdDev Allocated
StaticLocalFunctionExample 34.60 us 0.681 us 0.885 us 600 B
LocalFunctionExample 39.67 us 2.155 us 6.320 us 64632 B

About

A quick benchmark to showcase how lambdas can cause hidden memory allocations


Languages

Language:C# 100.0%