GithubHelp home page GithubHelp logo

im-beast / http_benchmarks Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 858 KB

🏎️ Deno web frameworks raced against each other

License: MIT License

TypeScript 100.00%
benchmark benchmarking deno http performance speed test testing web web-framework

http_benchmarks's Introduction

HTTP Benchmarks

🏎️ List of web frameworks for Deno raced against each other

Check benchmarks here:

Name Description
Hello world Server responds with simple "hello world" text
File server Static file server, where server needs to respond with files in given directory
Multiple routes Server with multiple routes:
  • /hello_world (GET) – returns "hello world"
  • /random_number (GET) – returns random number from 0 to 1
  • plus_1 (POST) – adds 1 to the counter
  • minus_1 (POST) – subtracts 1 from the counter
  • count (GET) – return counter value

More benchmarks are planned!
However if you have an idea for real-world scenario that frameworks speed should be tested for, please create an issue about it!

🏁 Benchmarking

Benchmarks are done on my PC!
This is because Github Actions is too slow to unleash the beast from some of the frameworks and provides unreliable results.

My CPU is an AMD Ryzen 7 5700G and is cooled well enough where temps don't exceed 55Β°C during heavy-use.
I make sure that nothing is running in the background while doing benchmarks.

Benchmarks are run after:

  • Every update to any of the modules
  • Change has been made to source code of benchmarking tool
  • New benchmarks have been added
  • New Deno version is out

🀝 Contributing

http_benchmarks is open for any contributions.
If you feel like you can enhance this project - please open an issue and/or pull request.

This project follows conventional commits spec.

Benchmark code should look like so:
Description is optional, you can leave it as empty string.

export const NAME = "";
export const DESCRIPTION = "";
export const VERSION = "";

if (import.meta.main) {
  // ...your framework code
}

πŸ™ To dear web framework developers

If you can, please contribute to this project by creating a pull request where you add code for benchmarks for your framework.
I should be able to update versions of them myself from that time, and I'll try to add as many benchmarks as I can.
However that'd make it a lot easier, since you know how to write code for that framework better (and faster!).

πŸ“ Licensing

This project is available under MIT License conditions.

http_benchmarks's People

Contributors

im-beast avatar mimimonads avatar lilnasy avatar

Stargazers

akumarujon avatar xhe avatar v1rtl avatar markthree avatar Yuki Tanaka avatar  avatar Ayo Reis avatar

Watchers

 avatar  avatar

http_benchmarks'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.