Giter VIP home page Giter VIP logo

soulteary / nginx-qrcode-server Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 3.0 67 KB

High Performance QR Code Server with Nginx, Close to the size of the official Nginx Docker Image (~ 55MB).

Home Page: https://www.zhihu.com/question/21483073/answer/2647942304

License: MIT License

Dockerfile 53.94% Shell 46.06%
qrcode qrcode-generator nginx nginx-module nginx-server qrcode-encoder serverless docker docker-nginx

nginx-qrcode-server's Introduction

High Performance Nginx Qrcode Server

High Performance QR Code Server with Nginx, Close to the size of the official Nginx Docker Image (~ 55MB).

Quick Start

docker run --rm -it -p 8080:80 soulteary/nginx-qrcode-server

open browser, visit localhost:8080

Docker Images

Docker images that can be used:

  • soulteary/nginx-qrcode-server
  • soulteary/nginx-qrcode-server:memcached
  • soulteary/nginx-qrcode-server:2022.08.22
  • soulteary/nginx-qrcode-server:2022.08.22-memcached

Docker Compose

If you have compose locally, you can also use the docker compose or docker-compose command to quickly start the service:

Simplify startup commands with compose:

docker compose up -d

Start the service with memcached for higher performance:

docker compose -f docker-compose.memcached.yml up -d

Benchmark

Tested with a AMD Zen2 laptop (R7-4750u)

Standalone

single core: (limit nginx with worker_processes 1)

Running 30s test @ http://10.11.12.240:8080
  16 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   196.91ms   28.21ms 288.56ms   78.55%
    Req/Sec    30.43     12.31    60.00     74.05%
  14589 requests in 30.10s, 10.11MB read
Requests/sec:    484.61
Transfer/sec:    344.05KB

8 cores 16 threads: (limit nginx with worker_processes auto)

Running 30s test @ http://10.11.12.240:8080
  16 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    32.29ms   22.70ms 156.43ms   83.76%
    Req/Sec   204.13     74.04   390.00     64.94%
  97811 requests in 30.10s, 67.81MB read
Requests/sec:   3249.91
Transfer/sec:      2.25MB

With Memcached

8 cores 16 threads: (limit nginx with worker_processes auto)

Running 30s test @ http://10.11.12.240:8080
  16 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.78ms   20.19ms 324.35ms   98.46%
    Req/Sec     4.02k   529.70     7.22k    82.11%
  1903410 requests in 30.10s, 1.29GB read
Requests/sec:  63237.09
Transfer/sec:     43.84MB

Resources

nginx-qrcode-server's People

Contributors

soulteary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nginx-qrcode-server's Issues

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.