Code Monkey home page Code Monkey logo

avatar-cache's Introduction

Avatar Cache

Simple & fast cache for small objects (currently oriented to avatars).

WARNING: the project is nothing more than a toy, not production-ready. DON'T USE UNLESS YOU KNOW WHAT YOU ARE DOING.

Configure

Take a look at Config.example.php for more information. Remember to copy Config.example.php to Config.php and modify the fields.

Performance

Aimed to maximize the performance as a project based on php with swoole, it still needs to be refactored greatly.

Currently, the performance is about half of the rust + actix based idawnlight/one-rust, a project much more like a toy. A short-term target is to surpass that.

avatar-cache's People

Contributors

dependabot[bot] avatar idawnlight avatar xtlsoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

avatar-cache's Issues

Question with your benchmark method

You use WSL to benchmark the Swoole version.

But WSL may cause a big performance problem.

On SZCK-SRV, with 32 threads, this is the result I got:

Server Software:        NodeName
Server Hostname:        localhost
Server Port:            32501

Document Path:          /gravatar/605f8c6c64b8fcd514a0b53c6cc3680c
Document Length:        15080 bytes

Concurrency Level:      16
Time taken for tests:   0.190 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      15498000 bytes
HTML transferred:       15080000 bytes
Requests per second:    5267.93 [#/sec] (mean)
Time per request:       3.037 [ms] (mean)
Time per request:       0.190 [ms] (mean, across all concurrent requests)
Transfer rate:          79728.84 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       2
Processing:     1    3   1.9      2      19
Waiting:        1    3   1.9      2      19
Total:          1    3   1.9      2      21

Percentage of the requests served within a certain time (ms)
  50%      2
  66%      3
  75%      3
  80%      4
  90%      4
  95%      6
  98%      8
  99%     13
 100%     21 (longest request)

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.