Giter Site home page Giter Site logo

tolgaek / node-orm-performance Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sequelize/sequelize-performance

2.0 2.0 1.0 4.7 MB

Some performance tests for jugglingdb, sequelize and some other libraries for comparison.

JavaScript 54.94% Ruby 45.06%

node-orm-performance's Introduction

What is this repository about?

mumble mumble

Setup database first

The tests are using the database performance_analysis_sequelize with the user root without a password!

How is it working?

npm install
node check-performance.js

cd rails
bundle
ruby sh/performance-test.rb

Test-results on ec2 micro instance (ami-cb340abf)

node-mysql#insertSerially (25 runs): 9898.8ms
node-mysql#insertAsync (25 runs): 9669.96ms
node-mysql#updateSerially (25 runs): 9610.2ms
node-mysql#updateAsync (25 runs): 9654.12ms
node-mysql#read (25 runs): 83.2ms
node-mysql#deleteSerially (25 runs): 9594.68ms
node-mysql#deleteAsync (25 runs): 448.6ms

node-orm#insertSerially (25 runs): 9147.96ms
node-orm#insertAsync (25 runs): 9097.64ms
node-orm#updateSerially (25 runs): 8811.08ms
node-orm#updateAsync (25 runs): 8753.6ms
node-orm#read (25 runs): 169.88ms
node-orm#deleteSerially (25 runs): 8686.68ms
node-orm#deleteAsync (25 runs): 8901.76ms

persistencejs#insertSerially (25 runs): 26831ms
persistencejs#insertAsync (25 runs): 11059.24ms
persistencejs#updateSerially (25 runs): 36069.4ms
persistencejs#updateAsync (25 runs): 51.12ms
persistencejs#read (25 runs): 12710.2ms
persistencejs#deleteSerially (25 runs): 38623.64ms
persistencejs#deleteAsync (25 runs): 10867.72ms

sequelize#insertSerially (25 runs): 25763.28ms
sequelize#insertAsync (25 runs): 10392.8ms
sequelize#updateSerially (25 runs): 25820.4ms
sequelize#updateAsync (25 runs): 9892.56ms
sequelize#read (25 runs): 659.96ms
sequelize#deleteSerially (25 runs): 25829.32ms
sequelize#deleteAsync (25 runs): 9807.88ms

Rails#updateSerially (25 runs): 35896ms
Rails#updateAsync (25 runs): 36875ms
Rails#deleteSerially (25 runs): 19027ms
Rails#read (25 runs): 830ms
Rails#deleteAsync (25 runs): 23206ms
Rails#insertSerially (25 runs): 37025ms
Rails#insertAsync (25 runs): 55269ms

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.