Skip to content

๐ŸŽ๏ธ Deno web frameworks raced against each other

License

Notifications You must be signed in to change notification settings

Im-Beast/http_benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

74 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.