Giter Site home page Giter Site logo

benchmarks's Introduction

Static Web Servers Benchmarks

A benchmark suite which measures the requests per second and latency on average for several web servers.

Motivation and context

We wanted to prepare some benchmarks to have a general idea about the SWS performance path over time as well as an excuse to improve/optimize SWS in that regard.

Important Remarks

  • Note that this is a rough reference about some particular performance aspects (requests per second and latency on average) so take it at your own risk.
  • Be also aware that this benchmark disables in-memory cache for some servers intentionally since SWS doesn't provide such a feature yet.
    In the case of some web servers providing that by default then it gets disabled explicitly. See for example binserve's author comment in this context.
  • Have also in mind that some web servers follow approaches like Nignx's hybrid disk‑and‑memory cache strategy which could work in its favor.

Benchmarks history

Perform the benchmarks

Change URL env with the corresponding server URL to load test and generate the wrk metrics.

# NOTE: the load test is per server
SERVER="sws" URL="http://localhost" make wrk
# wrk -c 500 -t 12 -d 10s --latency http://localhost

After that, wrk will save two files (JSON/CSV) on disk with the resulting metrics.

For more details about settings see Makefile

System used

  • OS: Arch Linux
  • Kernel: 6.1.11-arch1-1 (64 bits)
  • Processor: 4 × Intel® Core™ i7-6500U
  • RAM: 8 GiB

Contributions

Of course, if you find any issue or remark/improvement to do please don't hesitate to file an issue or send a Pull request.

benchmarks's People

Contributors

joseluisq avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

benchmarks's Issues

Any resource usage benchmark?

It would be interesting to also see how those servers fare regarding memory and (average?) CPU usage.
Personally, I'm running some very low-resource servers (well, relative to today's standards) for my friends and I, say a netbook with an Atom N270 and 2GB of RAM.

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.