Coder Social home page Coder Social logo

node_redis-vs-ioredis's Introduction

node_redis-vs-ioredis

There are two popular redis client for Node: node_redis and ioredis.

This repo is a simple benchmark for them. Welcome PR to makes this not tooooo simple >.<

About this benchmark

First of all i must say ioredis is a real full-featured redis client right now. This is a really big PRO.

I have no malice for both libraries. Just wanna do a performance benchmark.

Run

  1. Use git clone [email protected]:poppinlp/node_redis-vs-ioredis.git to clone this repo to local.
  2. Use yarn or npm i to install dependencies.
  3. Use redis-server to start redis server local with no password.
  4. Use npm test to start benchmark.

Result

I do this benchmark test on my PC whose hardware are:

  • OS: Ubuntu 17.04 64-bit
  • Processor: Intel® Core™ i5-4590 CPU @ 3.30GHz × 4
  • Memory: 8GiB
  • Graphics: GeForce GTX 750 Ti/PCIe/SSE2

I got these output:

node_redis set: 551.966ms
ioredis set: 679.761ms
ioredis set with pipeline: 156.763ms
node_redis get: 537.623ms
ioredis get: 640.003ms
ioredis get with pipeline: 164.286ms
node_redis hmset: 571.139ms
ioredis hmset: 747.225ms
ioredis hmset with pipeline: 208.449ms
node_redis hgetall: 618.184ms
ioredis hgetall: 736.134ms
ioredis hgetall with pipeline: 243.452ms
node_redis incr: 575.395ms
ioredis incr: 667.477ms
ioredis incr with pipeline: 170.836ms
node_redis keys: 682.787ms
ioredis keys: 746.521ms
ioredis keys with pipeline: 243.462ms

Welcome PR to makes this not tooooo simple >.<

node_redis-vs-ioredis's People

Contributors

poppinlp avatar

Watchers

 avatar  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.