Giter VIP home page Giter VIP logo

web-service-albums-benchmark's Introduction

Benchmarking API Frameworks

Project scope

Serve a list of 100 albums with a REST like interface (JSON) and measure the performance with wrk

Requirements

  • server should run on port 8000
  • server app should be optimized for speed (release mode) when possible
  • output should be RAW JSON prepared in advance
  • albums should be pre-loaded, no database or file access
  • benchmark all apps on the same machine with minimum apps loaded
    • wrk -d 20 -t 1 -c 1 http://127.0.0.1:8000/albums (client with 1 thread and 1 connection)
    • wrk -d 20 http://127.0.0.1:8000/albums(client with 2 threads and 10 connections - default)
    • wrk -d 20 -t 16 -c 500 http://127.0.0.1:8000/albums (client with 16 threads and 500 connections)

Benchmark machines

Machine #1 (Workstation)

  • Gigabyte B660 GAMING X DDR4
  • 12th Gen Intel® Core™ i9-12900K × 24
  • Corsair 32,0 GiB DDR4/3200 RAM
  • KIOXIA-EXCERIA SSD 1TB
  • Ubuntu 24.04

Machine #2 (Server VM)

  • MSI PRO H610M-E
  • 14th Gen Intel® Core™ i5-14600K x 20 -> 8 cores used
  • 16 GiB DDR5 -> 8GB used
  • UNRAID SSD 20GB
  • Ubuntu 22.04.4 LTS Server

Extra information can be found in each mini project's folder. Chart

You can also check my article The correct way to benchmark your web server

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.