Skip to content

Latest commit

 

History

History
99 lines (72 loc) · 2.7 KB

README.md

File metadata and controls

99 lines (72 loc) · 2.7 KB

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