Code Monkey home page Code Monkey logo

embeddeddatabasebenchmark.net's Introduction

Shallow comparative analysis of CRUD operations performance among SQL/NoSQL Embedded databases in .NET Core

SQLite / SQL Server Express LocalDB / Realm .NET / LiteDB

Versions of compared database that have been used in analysis can be found in source code.

The analysis shows the execution time to perform N operations (Create/Update/Read/Delete) using same entity type.

Databases` settings are not modified after installation, no performance adjusments were made.

For time measurements tool System.Diagnostic.Stopwatch was chosen. The time unit is ms. Timer starts when transaction opens and ends once transaction is closed.

Entity type:

public class DataUnit
{
    public int Id { get; set; }
    public string Name { get; set; }
    public int Sum { get; set; }
}

In order to complete the analysis, queries are executed in separate iterations of 1_000, 10_000 and 100_000 operations.


N=1_000 CREATE READ UPDATE DELETE
SQLite 16 10 20 19
SQL Server LocalDB 122 139 159 142
Realm 14 19 12 25
LiteDB 822 26 529 813

N=10_000 CREATE READ UPDATE DELETE
SQLite 75 108 94 76
SQL Server LocalDB 1257 1645 1662 1199
Realm 210 93 130 1159
LiteDB 8864 300 10653 11298

N=100_000 CREATE READ UPDATE DELETE
SQLite 966 1610 1214 1090
SQL Server LocalDB 14545 15903 15872 12738
Realm 1242 554 738 321127
LiteDB 106493 3506 118285 119198

The comparative analysis doesn't pretend to exalt one over others, it represents what you can expect from database performance in most simple ways. The database effiency can be different in various situation with various data. The conclusion what to choose is up to you.

embeddeddatabasebenchmark.net's People

Contributors

shakenovdev avatar

Stargazers

 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.