Coder Social home page Coder Social logo

ef-lazy-loading-benchmark's Introduction

ef-lazy-loading-benchmark

Contains a .NET benchmark for Entity Framework Core 8's lazy loading to evaluate memory footprint regression.

To run the benchmarks, use the following commands:

For Entity Framework 7:

dotnet run --project ef7/ef7.csproj -c Release

For Entity Framework 8:

dotnet run --project ef8/ef8.csproj -c Release

Results with lazy-loading

BenchmarkDotNet v0.13.12, macOS Sonoma 14.3 (23D56) [Darwin 23.3.0] Apple M1 Pro, 1 CPU, 10 logical and 10 physical cores .NET SDK 8.0.203 [Host] : .NET 8.0.3 (8.0.324.11423), Arm64 RyuJIT AdvSIMD DefaultJob : .NET 8.0.3 (8.0.324.11423), Arm64 RyuJIT AdvSIMD

Microsoft.EntityFrameworkCore 8.0.3

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
Enumerate 3.104 s 0.0120 s 0.0100 s 281000.0000 104000.0000 2000.0000 1.81 GB

Microsoft.EntityFrameworkCore 7.0.17

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
Enumerate 1.968 s 0.0381 s 0.0356 s 168000.0000 46000.0000 1000.0000 1.16 GB

Results without lazy-loading

Microsoft.EntityFrameworkCore 8.0.3

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
Enumerate 1.182 s 0.0093 s 0.0087 s 117000.0000 34000.0000 1000.0000 861.84 MB

Microsoft.EntityFrameworkCore 7.0.17

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
Enumerate 1.266 s 0.0102 s 0.0096 s 132000.0000 40000.0000 1000.0000 953.39 MB

ef-lazy-loading-benchmark's People

Contributors

gureevleonid avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.