GithubHelp home page GithubHelp logo

redis-concurrent-test's Introduction

Redis Concurrent Test

使用 Jedis 操作 Redis 执行简单加一操作,分别使用 INCR, Get and Set, WATCH(CAS), LOCK 进行实现。

Result

执行 10000 次加一操作耗时,单位毫秒

并发数 1 2 5 10 50 100
INCR 744 459 282 260 301 386
Get and Set 1092 833 (结果 5247) 467 (结果 3007) 423 (结果 1733) 438 (结果 433) 429 (结果 280)
WATCH (CAS) 2248 2245 (重试 109) 2376 (重试 455) 2425 (重试 1035) 2700 (重试 5967) 2872 (重试 12008)
LOCK 3789 4079 4136 4225 4655 5957

redis-concurrent-test's People

Contributors

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